Cancel the status update if exception happens during await update_task
This commit is contained in:
parent
2fddadf363
commit
3f2b9feb7d
1 changed files with 2 additions and 1 deletions
|
|
@ -321,7 +321,8 @@ class Download:
|
|||
status = await self.update_task
|
||||
except Exception as e:
|
||||
LOG.error(f"Failed to get status update for: {self.info._id=}. {e}")
|
||||
pass
|
||||
LOG.exception(e)
|
||||
return
|
||||
|
||||
if status is None or status.__class__ is Terminator:
|
||||
LOG.debug(f"Closing progress update for: {self.info._id=}.")
|
||||
|
|
|
|||
Loading…
Reference in a new issue