1
0
mirror of https://github.com/janeczku/calibre-web.git synced 2024-11-28 08:58:41 +02:00

Update Updater

This commit is contained in:
Ozzieisaacs 2018-11-01 13:47:05 +01:00
parent cc7dcfb35a
commit 0df35dcfea

View File

@ -1305,9 +1305,11 @@ def get_updater_status():
elif request.method == "GET":
try:
status['status'] = helper.updater_thread.get_update_status()
except Exception as e:
app.logger.exception(e)
except AttributeError:
# thread is not active, occours after restart on update
status['status'] = 7
except Exception:
status['status'] = 11
return json.dumps(status)