Add exception catch for sub download task
This commit is contained in:
parent
c6535f0ce1
commit
92a6101bbe
1 changed files with 3 additions and 0 deletions
|
|
@ -963,6 +963,9 @@ class DownloadQueue(metaclass=Singleton):
|
||||||
|
|
||||||
if entry.info.status not in ("finished", "skip"):
|
if entry.info.status not in ("finished", "skip"):
|
||||||
entry.info.status = "error"
|
entry.info.status = "error"
|
||||||
|
except Exception as e:
|
||||||
|
entry.info.status = "error"
|
||||||
|
entry.info.error = str(e)
|
||||||
finally:
|
finally:
|
||||||
if entry.info._id in self._active:
|
if entry.info._id in self._active:
|
||||||
self._active.pop(entry.info._id, None)
|
self._active.pop(entry.info._id, None)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue