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 e:
|
except Exception as _:
|
||||||
return str(e)
|
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