diff options
author | ふぁ <34892635+fa0311@users.noreply.github.com> | 2022-10-18 09:15:00 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-18 12:08:23 +0000 |
commit | de29ec0743fcfb141d8891a3ccbd537ea71bf5b4 (patch) | |
tree | ee7cf3a78cc54d4f2916ab969fc4f49cd17c5fb5 /modules/ui.py | |
parent | 97d3ba3941536215ea15431886c7f28300a9d915 (diff) | |
download | stable-diffusion-webui-gfx803-de29ec0743fcfb141d8891a3ccbd537ea71bf5b4.tar.gz stable-diffusion-webui-gfx803-de29ec0743fcfb141d8891a3ccbd537ea71bf5b4.tar.bz2 stable-diffusion-webui-gfx803-de29ec0743fcfb141d8891a3ccbd537ea71bf5b4.zip |
Remove exception handling
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/ui.py b/modules/ui.py index 39afbc4e..b38bfb3f 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1754,10 +1754,7 @@ Requested path was: {f} else:
setattr(obj, field, saved_value)
if getattr(x, 'init_field', False):
- try:
- x.init_field(saved_value)
- except Exception:
- print(f'Warning: Bad ui setting value: {key}: {saved_value}; Default value "{getattr(obj, field)}" will be used instead.')
+ x.init_field(saved_value)
if type(x) in [gr.Slider, gr.Radio, gr.Checkbox, gr.Textbox, gr.Number] and x.visible:
apply_field(x, 'visible')
|