finish06 / pyunifi

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

No ssl warning #17

Closed luken closed 6 years ago

luken commented 6 years ago

Removes import of urllib.parse. This import fails on the debian stretch systems using this module and it doesn't appear to be used in the code anyway.

Don't print the below error when ssl_verify=False. /usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:845: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning)

agauvrit-tis commented 6 years ago

Had the same issue, i approve that PR

finish06 commented 6 years ago

Closing PR. See Jan 30th comment.