aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorふぁ <34892635+fa0311@users.noreply.github.com>2022-10-18 18:15:00 +0900
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-18 15:08:23 +0300
commitde29ec0743fcfb141d8891a3ccbd537ea71bf5b4 (patch)
treeee7cf3a78cc54d4f2916ab969fc4f49cd17c5fb5
parent97d3ba3941536215ea15431886c7f28300a9d915 (diff)
Remove exception handling
-rw-r--r--modules/ui.py5
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')