h
This commit is contained in:
@@ -630,7 +630,7 @@ class DownloadModal(ModalScreen):
|
||||
f"Download failed: {error_reason}",
|
||||
)
|
||||
except Exception:
|
||||
pass
|
||||
logger.exception("Failed to finish worker during download failure handling")
|
||||
|
||||
# Also append detailed error info to worker stdout for visibility
|
||||
if worker:
|
||||
@@ -799,7 +799,7 @@ class DownloadModal(ModalScreen):
|
||||
f"Download error: {str(e)}",
|
||||
)
|
||||
except Exception:
|
||||
pass
|
||||
logger.exception("Failed to finish worker during download error handling")
|
||||
self.app.call_from_thread(self._hide_progress)
|
||||
self.app.call_from_thread(self.dismiss)
|
||||
return
|
||||
@@ -1091,7 +1091,7 @@ class DownloadModal(ModalScreen):
|
||||
try:
|
||||
worker.finish("error", f"Download failed: {str(e)}")
|
||||
except Exception:
|
||||
pass
|
||||
logger.exception("Failed to finish worker on download submit error")
|
||||
self.app.call_from_thread(self._hide_progress)
|
||||
self.app.call_from_thread(
|
||||
self.app.notify,
|
||||
|
||||
Reference in New Issue
Block a user