diff options
author | Yuval Aboulafia <yuval.abou@gmail.com> | 2022-12-24 19:35:29 +0000 |
---|---|---|
committer | Yuval Aboulafia <yuval.abou@gmail.com> | 2022-12-24 19:35:29 +0000 |
commit | 3bf5591efe9a9f219c6088be322a87adc4f48f95 (patch) | |
tree | 187e06ab5a4e78d3d732343331c0e375eac88395 /modules/safe.py | |
parent | 5927d3fa95e9ae43252d598f7791ca26cfcad5e3 (diff) | |
download | stable-diffusion-webui-gfx803-3bf5591efe9a9f219c6088be322a87adc4f48f95.tar.gz stable-diffusion-webui-gfx803-3bf5591efe9a9f219c6088be322a87adc4f48f95.tar.bz2 stable-diffusion-webui-gfx803-3bf5591efe9a9f219c6088be322a87adc4f48f95.zip |
fix F541 f-string without any placeholders
Diffstat (limited to 'modules/safe.py')
-rw-r--r-- | modules/safe.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/safe.py b/modules/safe.py index 479c8b86..1d4c20b9 100644 --- a/modules/safe.py +++ b/modules/safe.py @@ -137,15 +137,15 @@ def load_with_extra(filename, extra_handler=None, *args, **kwargs): except pickle.UnpicklingError:
print(f"Error verifying pickled file from {filename}:", file=sys.stderr)
print(traceback.format_exc(), file=sys.stderr)
- print(f"-----> !!!! The file is most likely corrupted !!!! <-----", file=sys.stderr)
- print(f"You can skip this check with --disable-safe-unpickle commandline argument, but that is not going to help you.\n\n", file=sys.stderr)
+ print("-----> !!!! The file is most likely corrupted !!!! <-----", file=sys.stderr)
+ print("You can skip this check with --disable-safe-unpickle commandline argument, but that is not going to help you.\n\n", file=sys.stderr)
return None
except Exception:
print(f"Error verifying pickled file from {filename}:", file=sys.stderr)
print(traceback.format_exc(), file=sys.stderr)
- print(f"\nThe file may be malicious, so the program is not going to read it.", file=sys.stderr)
- print(f"You can skip this check with --disable-safe-unpickle commandline argument.\n\n", file=sys.stderr)
+ print("\nThe file may be malicious, so the program is not going to read it.", file=sys.stderr)
+ print("You can skip this check with --disable-safe-unpickle commandline argument.\n\n", file=sys.stderr)
return None
return unsafe_torch_load(filename, *args, **kwargs)
|