Update Updater
This commit is contained in:
parent
cc7dcfb35a
commit
0df35dcfea
|
@ -1305,9 +1305,11 @@ def get_updater_status():
|
||||||
elif request.method == "GET":
|
elif request.method == "GET":
|
||||||
try:
|
try:
|
||||||
status['status'] = helper.updater_thread.get_update_status()
|
status['status'] = helper.updater_thread.get_update_status()
|
||||||
except Exception as e:
|
except AttributeError:
|
||||||
app.logger.exception(e)
|
# thread is not active, occours after restart on update
|
||||||
status['status'] = 7
|
status['status'] = 7
|
||||||
|
except Exception:
|
||||||
|
status['status'] = 11
|
||||||
return json.dumps(status)
|
return json.dumps(status)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user