mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-25 06:26:37 +00:00
Raising an exception here is not needed
This commit is contained in:
parent
b1267a3e59
commit
0aac8c27ed
@ -615,7 +615,9 @@ def download_media(media_id, override=False):
|
|||||||
raise InvalidTaskError(_('no such media')) from e
|
raise InvalidTaskError(_('no such media')) from e
|
||||||
else:
|
else:
|
||||||
if not media.download_checklist(override):
|
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
|
filepath = media.filepath
|
||||||
container = format_str = None
|
container = format_str = None
|
||||||
|
Loading…
Reference in New Issue
Block a user