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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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