diff --git a/adafruit_matrixportal/network.py b/adafruit_matrixportal/network.py index bf99036..841c4eb 100755 --- a/adafruit_matrixportal/network.py +++ b/adafruit_matrixportal/network.py @@ -355,7 +355,11 @@ def fetch_data( response = self.fetch(url, headers=headers, timeout=timeout) - if json_path: + if json_path is not None: + if isinstance(json_path, (list, tuple)) and ( + not json_path or not isinstance(json_path[0], (list, tuple)) + ): + json_path = (json_path,) try: gc.collect() json_out = response.json()