update_manager: send notification response upon update error
Attach "is_complete" to the response so clients know that the transaction is done, even though it resulted in an error. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
5f986ab770
commit
d194ce00ab
|
@ -186,7 +186,9 @@ class UpdateManager:
|
|||
self.current_update = (app, id(web_request))
|
||||
try:
|
||||
await updater.update(inc_deps)
|
||||
except Exception:
|
||||
except Exception as e:
|
||||
self.notify_update_response(f"Error updating {app}")
|
||||
self.notify_update_response(str(e), is_complete=True)
|
||||
raise
|
||||
finally:
|
||||
self.current_update = None
|
||||
|
|
Loading…
Reference in New Issue