From 0df35dcfea5cbd550257a0ee5e4044df25e9897d Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Thu, 1 Nov 2018 13:47:05 +0100 Subject: [PATCH] Update Updater --- cps/web.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cps/web.py b/cps/web.py index 979cb64a..a8515ce9 100644 --- a/cps/web.py +++ b/cps/web.py @@ -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)