mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-11-21 03:11:40 +08:00
fallback get_config()
This commit is contained in:
parent
27947a79d6
commit
dd4f798b97
@ -179,5 +179,9 @@ def get_extensions(*, enabled):
|
||||
def get_config():
|
||||
try:
|
||||
return shared.opts.data
|
||||
except Exception as e:
|
||||
return str(e)
|
||||
except Exception as _:
|
||||
try:
|
||||
with open(shared.cmd_opts.ui_settings_file, 'r') as f:
|
||||
return json.load(f)
|
||||
except Exception as e:
|
||||
return str(e)
|
||||
|
Loading…
Reference in New Issue
Block a user