diff --git a/dzgui/util/_json.py b/dzgui/util/_json.py index bc8f70e..58faa93 100644 --- a/dzgui/util/_json.py +++ b/dzgui/util/_json.py @@ -2,15 +2,13 @@ import json from pathlib import Path from typing import Any + def read_json(path: Path) -> Any: try: with open(path, "r") as infile: - try: - data = json.load(infile) - return data - except json.decoder.JSONDecodeError as e: - raise e - except OSError as e: + data = json.load(infile) + return data + except Exception as e: raise e