mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
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)
|
||||
except Exception:
|
||||
pass
|
||||
except:
|
||||
except Exception:
|
||||
errors.report(f"Error reading metadata from file: {filename}", exc_info=True)
|
||||
|
||||
return res
|
||||
|
Loading…
Reference in New Issue
Block a user