From 0aac8c27ed4cec619acbd10678c3ec05901dfcd0 Mon Sep 17 00:00:00 2001 From: tcely Date: Mon, 19 May 2025 15:40:54 -0400 Subject: [PATCH] Raising an exception here is not needed --- tubesync/sync/tasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tubesync/sync/tasks.py b/tubesync/sync/tasks.py index 2736fdc7..00f4ffd3 100644 --- a/tubesync/sync/tasks.py +++ b/tubesync/sync/tasks.py @@ -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