finish06 / pyunifi

https://unifi-sdn.ubnt.com/
MIT License
223 stars 100 forks source link

Make Controller._login more robust to failure cases. #12

Closed ChromoX closed 6 years ago

ChromoX commented 6 years ago

Added the ability for Controller._login to kind of recover from urllib3 ProtocolErrors by simply retrying the login Controller.MAX_LOGIN_RETRIES times.

ChromoX commented 6 years ago

This didn't fix things as well as I'd hoped.