Raising an exception here is not needed

This commit is contained in:
tcely 2025-05-19 15:40:54 -04:00 committed by GitHub
parent b1267a3e59
commit 0aac8c27ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -615,7 +615,9 @@ def download_media(media_id, override=False):
raise InvalidTaskError(_('no such media')) from e
else:
if not media.download_checklist(override):
raise Exception('media download not ready')
# any condition that needs ro reschedule the task
# should raise an exception to avoid this
return
filepath = media.filepath
container = format_str = None