Skip to content

Commit 00dccdf

Browse files
committed
Updated to work with Requests 1.7.x
1 parent d993539 commit 00dccdf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

adafruit_matrixportal/network.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,6 @@ def fetch(self, url, *, headers=None, timeout=10):
395395
self.neo_status(STATUS_DATA_RECEIVED) # green = got data
396396
print("Reply is OK!")
397397

398-
if self._debug:
399-
print(response.text)
400-
401398
return response
402399

403400
def fetch_data(
@@ -417,6 +414,8 @@ def fetch_data(
417414
try:
418415
gc.collect()
419416
json_out = response.json()
417+
if self._debug:
418+
print(json_out)
420419
gc.collect()
421420
except ValueError: # failed to parse?
422421
print("Couldn't parse json: ", response.text)

0 commit comments

Comments
 (0)