aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui_loadsave.py
diff options
context:
space:
mode:
authorRobert Barron <rubberbaron@robustspread.com>2023-08-14 07:35:17 +0000
committerRobert Barron <rubberbaron@robustspread.com>2023-08-14 07:35:17 +0000
commitd61e31bae620632c026c927cf6538180447c6918 (patch)
tree0397dcc8e741ed391164fb6b7e8e374a46f0f4ce /modules/ui_loadsave.py
parent54f926b11d29910df9f813e2e0ea6d35c6f4a50d (diff)
parentf3b96d4998d8ca376d33efa7a4454e8c28e24255 (diff)
downloadstable-diffusion-webui-gfx803-d61e31bae620632c026c927cf6538180447c6918.tar.gz
stable-diffusion-webui-gfx803-d61e31bae620632c026c927cf6538180447c6918.tar.bz2
stable-diffusion-webui-gfx803-d61e31bae620632c026c927cf6538180447c6918.zip
Merge remote-tracking branch 'auto1111/dev' into shared-hires-prompt-test
Diffstat (limited to 'modules/ui_loadsave.py')
-rw-r--r--modules/ui_loadsave.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ui_loadsave.py b/modules/ui_loadsave.py
index a96c71b2..9a40cf4f 100644
--- a/modules/ui_loadsave.py
+++ b/modules/ui_loadsave.py
@@ -48,13 +48,13 @@ class UiLoadsave:
elif condition and not condition(saved_value):
pass
else:
- if isinstance(x, gr.Textbox) and field == 'value': # due to an undersirable behavior of gr.Textbox, if you give it an int value instead of str, everything dies
+ if isinstance(x, gr.Textbox) and field == 'value': # due to an undesirable behavior of gr.Textbox, if you give it an int value instead of str, everything dies
saved_value = str(saved_value)
elif isinstance(x, gr.Number) and field == 'value':
try:
saved_value = float(saved_value)
except ValueError:
- saved_value = -1
+ return
setattr(obj, field, saved_value)
if init_field is not None: