Commit dd4f798b authored by w-e-w's avatar w-e-w

fallback get_config()

parent 27947a79
......@@ -179,5 +179,9 @@ def get_extensions(*, enabled):
def get_config():
try:
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:
return str(e)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment