-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
In the event of an HTTP error, such as polling Adafruit IO api too often, the statement content_length = int(r.headers['content-length']) at line 638 is not valid which causes an unhandled exception.
Traceback (most recent call last):
File "code.py", line 33, in
File "code.py", line 29, in
File "adafruit_pyportal.py", line 845, in fetch
File "adafruit_pyportal.py", line 842, in fetch
File "adafruit_pyportal.py", line 838, in fetch
File "adafruit_pyportal.py", line 832, in fetch
File "adafruit_pyportal.py", line 638, in wget
KeyError: content-length
Code done running. Waiting for reload.
Auto-reload is on. Simply save files over USB to run them or enter REPL to disab
le.
Press any key to enter the REPL. Use CTRL-D to reload.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working