mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-20 05:10:15 +08:00
Remove exception handling
This commit is contained in:
parent
97d3ba3941
commit
de29ec0743
@ -1754,10 +1754,7 @@ Requested path was: {f}
|
|||||||
else:
|
else:
|
||||||
setattr(obj, field, saved_value)
|
setattr(obj, field, saved_value)
|
||||||
if getattr(x, 'init_field', False):
|
if getattr(x, 'init_field', False):
|
||||||
try:
|
x.init_field(saved_value)
|
||||||
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.')
|
|
||||||
|
|
||||||
if type(x) in [gr.Slider, gr.Radio, gr.Checkbox, gr.Textbox, gr.Number] and x.visible:
|
if type(x) in [gr.Slider, gr.Radio, gr.Checkbox, gr.Textbox, gr.Number] and x.visible:
|
||||||
apply_field(x, 'visible')
|
apply_field(x, 'visible')
|
||||||
|
Loading…
Reference in New Issue
Block a user