in case no scheduler.json, prevent internal server err
This commit is contained in:
parent
c2e6199f61
commit
83c2bb4e48
@ -246,7 +246,7 @@ def index():
|
|||||||
scheduler_settings = json.load(f)
|
scheduler_settings = json.load(f)
|
||||||
f.close()
|
f.close()
|
||||||
except:
|
except:
|
||||||
scheduler_settings = ''
|
scheduler_settings = {"shutdown": {"hour": "00", "minute": "00", "enabled": False}, "reboot":{"hour": "00", "minute": "00", "enabled": False}, "timezone": "GMT"}
|
||||||
|
|
||||||
try: # incase this doesnt exist
|
try: # incase this doesnt exist
|
||||||
api_keys = api_key2[1]
|
api_keys = api_key2[1]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user