Cancel the status update if exception happens during await update_task

This commit is contained in:
ArabCoders 2025-01-18 18:27:30 +03:00
parent 2fddadf363
commit 3f2b9feb7d

View file

@ -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=}.")