mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +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():
|
def get_config():
|
||||||
try:
|
try:
|
||||||
return shared.opts.data
|
return shared.opts.data
|
||||||
|
except Exception as _:
|
||||||
|
try:
|
||||||
|
with open(shared.cmd_opts.ui_settings_file, 'r') as f:
|
||||||
|
return json.load(f)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return str(e)
|
return str(e)
|
||||||
|
Loading…
Reference in New Issue
Block a user