From 92a6101bbe159a5b47f827b38dbd14488d0a7593 Mon Sep 17 00:00:00 2001 From: arabcoders Date: Fri, 1 Aug 2025 17:37:46 +0300 Subject: [PATCH] Add exception catch for sub download task --- app/library/DownloadQueue.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/library/DownloadQueue.py b/app/library/DownloadQueue.py index 6521d2ca..e7b5f3c2 100644 --- a/app/library/DownloadQueue.py +++ b/app/library/DownloadQueue.py @@ -963,6 +963,9 @@ class DownloadQueue(metaclass=Singleton): if entry.info.status not in ("finished", "skip"): entry.info.status = "error" + except Exception as e: + entry.info.status = "error" + entry.info.error = str(e) finally: if entry.info._id in self._active: self._active.pop(entry.info._id, None)