tplinkrouterc6u 5.0.1__tar.gz → 5.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/PKG-INFO +1 -2
  2. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/README.md +0 -1
  3. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/setup.py +1 -1
  4. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/tplinkrouterc6u/client.py +3 -1
  5. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/tplinkrouterc6u.egg-info/PKG-INFO +1 -2
  6. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/LICENSE +0 -0
  7. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/setup.cfg +0 -0
  8. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/test/__init__.py +0 -0
  9. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/test/test_client.py +0 -0
  10. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/test/test_client_c1200.py +0 -0
  11. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/test/test_client_deco.py +0 -0
  12. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/test/test_client_mr.py +0 -0
  13. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/tplinkrouterc6u/__init__.py +0 -0
  14. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/tplinkrouterc6u/dataclass.py +0 -0
  15. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/tplinkrouterc6u/encryption.py +0 -0
  16. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/tplinkrouterc6u/exception.py +0 -0
  17. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/tplinkrouterc6u/helper.py +0 -0
  18. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/tplinkrouterc6u/package_enum.py +0 -0
  19. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/tplinkrouterc6u.egg-info/SOURCES.txt +0 -0
  20. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/tplinkrouterc6u.egg-info/dependency_links.txt +0 -0
  21. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/tplinkrouterc6u.egg-info/requires.txt +0 -0
  22. {tplinkrouterc6u-5.0.1 → tplinkrouterc6u-5.0.2}/tplinkrouterc6u.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tplinkrouterc6u
3
- Version: 5.0.1
3
+ Version: 5.0.2
4
4
  Summary: TP-Link Router API
5
5
  Home-page: https://github.com/AlexandrErohin/TP-Link-Archer-C6U
6
6
  Author: Alex Erohin
@@ -289,7 +289,6 @@ or you have TP-link C5400X or similar router you need to get web encrypted passw
289
289
  - Archer C900 V1
290
290
  - Archer C1200 V3
291
291
  - Archer C1900 V2
292
- - Archer C2300 V2
293
292
  - Archer C4000 (V2 and V3)
294
293
  - Archer C5400 V2
295
294
  - TL-WR1043N V5
@@ -267,7 +267,6 @@ or you have TP-link C5400X or similar router you need to get web encrypted passw
267
267
  - Archer C900 V1
268
268
  - Archer C1200 V3
269
269
  - Archer C1900 V2
270
- - Archer C2300 V2
271
270
  - Archer C4000 (V2 and V3)
272
271
  - Archer C5400 V2
273
272
  - TL-WR1043N V5
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setuptools.setup(
7
7
  name="tplinkrouterc6u",
8
- version="5.0.1",
8
+ version="5.0.2",
9
9
  author="Alex Erohin",
10
10
  author_email="alexanderErohin@yandex.ru",
11
11
  description="TP-Link Router API",
@@ -1440,8 +1440,10 @@ class TplinkRouterProvider:
1440
1440
  router = TplinkC1200Router(host, password, username, logger, verify_ssl, timeout)
1441
1441
  try:
1442
1442
  router.authorize()
1443
+ return router
1443
1444
  except AuthorizeError as e:
1444
- logger.error(e.__str__())
1445
+ if logger:
1446
+ logger.error(e.__str__())
1445
1447
  raise ClientException(('Login failed! Please check if your router local password is correct or '
1446
1448
  'try to use web encrypted password instead. Check the documentation!'
1447
1449
  ))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tplinkrouterc6u
3
- Version: 5.0.1
3
+ Version: 5.0.2
4
4
  Summary: TP-Link Router API
5
5
  Home-page: https://github.com/AlexandrErohin/TP-Link-Archer-C6U
6
6
  Author: Alex Erohin
@@ -289,7 +289,6 @@ or you have TP-link C5400X or similar router you need to get web encrypted passw
289
289
  - Archer C900 V1
290
290
  - Archer C1200 V3
291
291
  - Archer C1900 V2
292
- - Archer C2300 V2
293
292
  - Archer C4000 (V2 and V3)
294
293
  - Archer C5400 V2
295
294
  - TL-WR1043N V5
File without changes