diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-08 11:21:40 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-08 11:21:40 +0000 |
commit | 7a7fa25d02d469533dab5084bbd08d96d2df45a2 (patch) | |
tree | a33a9ab5f282bb30baa626b7ed3e0c808335dbee /modules | |
parent | d78377ea5d38dea8620fba6307dc5a1b41bc7503 (diff) | |
download | stable-diffusion-webui-gfx803-7a7fa25d02d469533dab5084bbd08d96d2df45a2.tar.gz stable-diffusion-webui-gfx803-7a7fa25d02d469533dab5084bbd08d96d2df45a2.tar.bz2 stable-diffusion-webui-gfx803-7a7fa25d02d469533dab5084bbd08d96d2df45a2.zip |
lint fix for #11492
Diffstat (limited to 'modules')
-rw-r--r-- | modules/images.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/images.py b/modules/images.py index fdccec09..9a5d9585 100644 --- a/modules/images.py +++ b/modules/images.py @@ -661,7 +661,7 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='png', i try:
# Resizing image with LANCZOS could throw an exception if e.g. image mode is I;16
image = image.resize(resize_to, LANCZOS)
- except:
+ except Exception:
image = image.resize(resize_to)
try:
_atomically_save_image(image, fullfn_without_extension, ".jpg")
|