Linter - except must not be bare.
This commit is contained in:
parent
44afb48447
commit
60c0799958
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue