Skip to content

Commit f5a61e9

Browse files
authored
Merge pull request adafruit#85 from makermelissa/master
Fixes an issue with Adafruit_CircuitPython_requests
2 parents 945d539 + 8975f24 commit f5a61e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adafruit_pyportal.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,13 +885,15 @@ def fetch(self, refresh_url=None, timeout=10):
885885
self.neo_status((0, 0, 100)) # green = got data
886886
print("Reply is OK!")
887887

888-
if self._debug:
888+
if self._debug and not self._image_json_path and not self._json_path:
889889
print(r.text)
890890

891891
if self._image_json_path or self._json_path:
892892
try:
893893
gc.collect()
894894
json_out = r.json()
895+
if self._debug:
896+
print(json_out)
895897
gc.collect()
896898
except ValueError: # failed to parse?
897899
print("Couldn't parse json: ", r.text)

0 commit comments

Comments
 (0)