mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 13:36:35 +00:00
Consistency fixes
The `filepath` variable is defined before the `if` and used throughout the first block, so we should use it in the `else` block too. Otherwise, a change to that variable would change the first block but not the second block.
This commit is contained in:
parent
3b41c8df81
commit
0795eb951d
@ -446,7 +446,7 @@ def download_media(media_id):
|
||||
else:
|
||||
# Expected file doesn't exist on disk
|
||||
err = (f'Failed to download media: {media} (UUID: {media.pk}) to disk, '
|
||||
f'expected outfile does not exist: {media.filepath}')
|
||||
f'expected outfile does not exist: {filepath}')
|
||||
log.error(err)
|
||||
# Raising an error here triggers the task to be re-attempted (or fail)
|
||||
raise DownloadFailedException(err)
|
||||
|
Loading…
Reference in New Issue
Block a user