diff --git a/tcllib/devlist.py b/tcllib/devlist.py index d1dc0d1..fe80ce0 100644 --- a/tcllib/devlist.py +++ b/tcllib/devlist.py @@ -29,7 +29,7 @@ def _load_local_devicelist(): need_download = False with open(DEVICELIST_FILE, "rt") as dlfile: return json.load(dlfile), need_download - except FileNotFoundError: + except (FileNotFoundError, json.decoder.JSONDecodeError): return None, True def _download_devicelist(doit: bool):