fallback get_config()

This commit is contained in:
w-e-w 2024-07-08 19:20:49 +09:00
parent 27947a79d6
commit dd4f798b97
1 changed files with 6 additions and 2 deletions

View File

@ -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)