diff --git a/adafruit_pyportal.py b/adafruit_pyportal.py index 5c62b0a..9e35ff9 100644 --- a/adafruit_pyportal.py +++ b/adafruit_pyportal.py @@ -885,13 +885,15 @@ def fetch(self, refresh_url=None, timeout=10): self.neo_status((0, 0, 100)) # green = got data print("Reply is OK!") - if self._debug: + if self._debug and not self._image_json_path and not self._json_path: print(r.text) if self._image_json_path or self._json_path: try: gc.collect() json_out = r.json() + if self._debug: + print(json_out) gc.collect() except ValueError: # failed to parse? print("Couldn't parse json: ", r.text)