Linter - except must not be bare.

This commit is contained in:
Brendan Hoar
2024-04-26 08:21:12 -04:00
committed by GitHub
parent 44afb48447
commit 60c0799958

View File

@@ -293,7 +293,7 @@ def read_metadata_from_safetensors(filename):
res[k] = json.loads(v)
except Exception:
pass
except:
except Exception:
errors.report(f"Error reading metadata from file: {filename}", exc_info=True)
return res