aboutsummaryrefslogtreecommitdiffstats
path: root/modules/images.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-08 11:21:40 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-08 11:21:40 +0000
commit7a7fa25d02d469533dab5084bbd08d96d2df45a2 (patch)
treea33a9ab5f282bb30baa626b7ed3e0c808335dbee /modules/images.py
parentd78377ea5d38dea8620fba6307dc5a1b41bc7503 (diff)
downloadstable-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/images.py')
-rw-r--r--modules/images.py2
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")