rgerganov / py-air-control

Command line app for controlling Philips air purifiers
MIT License
256 stars 52 forks source link

NameError: name 'urllib' is not defined #96

Closed slachy closed 2 years ago

slachy commented 2 years ago

Hi, great work with this project! It is very useful for me.

In file airctrl.py: There is a proper exception handling If set_value fails for some reason: except urllib.error.HTTPError as e: print("Error setting values (response code: {})".format(e.code))

But there is no import urllib so there is a NameError on that line.

rgerganov commented 2 years ago

Thanks for the report, should be fixed now.