mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
enable backend switching on-the-fly
This commit is contained in:
+4
-1
@@ -801,4 +801,7 @@ def read_options():
|
||||
global opts # pylint: disable=global-statement
|
||||
if os.path.isfile(args.config):
|
||||
with open(args.config, "r", encoding="utf8") as file:
|
||||
opts = json.load(file)
|
||||
try:
|
||||
opts = json.load(file)
|
||||
except Exception as e:
|
||||
log.error(f'Error reading options file: {file} {e}')
|
||||
|
||||
Reference in New Issue
Block a user