Display install_app exceptions raised during action queuing

This commit is contained in:
Disassembler 2020-04-04 13:38:57 +02:00
parent 571e641787
commit 5265b31504
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -199,7 +199,6 @@ class WSGIApp:
if app in pending_actions: if app in pending_actions:
# Display queued or currently processed actions # Display queued or currently processed actions
app_queue = pending_actions[app] app_queue = pending_actions[app]
if app_queue.index:
if app_queue.exception: if app_queue.exception:
# Display failed task # Display failed task
if isinstance(app_queue.exception, InvalidSignature): if isinstance(app_queue.exception, InvalidSignature):
@ -213,7 +212,7 @@ class WSGIApp:
status = lang.package_manager_error() status = lang.package_manager_error()
status = f'<span class="error">{status}<span> <a href="#" class="app-clear-status">OK</a>' status = f'<span class="error">{status}<span> <a href="#" class="app-clear-status">OK</a>'
actions = None actions = None
else: elif app_queue.index:
# Display task/subtask progress # Display task/subtask progress
action_item = app_queue.queue[app_queue.index-1] action_item = app_queue.queue[app_queue.index-1]
if action_item.type in (ActionItemType.IMAGE_DOWNLOAD, ActionItemType.APP_DOWNLOAD): if action_item.type in (ActionItemType.IMAGE_DOWNLOAD, ActionItemType.APP_DOWNLOAD):