diff --git a/commentjson/commentjson.py b/commentjson/commentjson.py index 4702057..e927940 100755 --- a/commentjson/commentjson.py +++ b/commentjson/commentjson.py @@ -201,6 +201,10 @@ def load(fp, **kwargs): try: return loads(fp.read(), **kwargs) + except ValueError: + # pass through ValueError since that likely just indicates a bad + # JSON file and ValueError is how the json library signals that. + raise except Exception as e: raise JSONLibraryException(e)