diff --git a/json_wrapper.py b/json_wrapper.py index 8163312..be0a1c2 100644 --- a/json_wrapper.py +++ b/json_wrapper.py @@ -33,7 +33,7 @@ class _JsonUtils: with open(self.json_path, mode="r") as json_file: data = json.load(json_file) - except (FileNotFoundError, ValueError): + except (FileNotFoundError, JSONDecodeError): with open(self.json_path, mode="w") as json_file: json.dump({}, json_file) return