Skip to content

Commit 8975f24

Browse files
committed
Fix logic
1 parent ecd0ec8 commit 8975f24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_pyportal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -885,14 +885,14 @@ 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 and not self._image_json_path or self._json_path:
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:
895+
if self._debug:
896896
print(json_out)
897897
gc.collect()
898898
except ValueError: # failed to parse?

0 commit comments

Comments
 (0)