mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
Not setting validated unless the conversion was successful.
This commit is contained in:
parent
3284a210bf
commit
9091efaf2b
1 changed files with 3 additions and 3 deletions
|
|
@ -415,9 +415,9 @@ def bulk_validate_posters(video_ids: List[int]):
|
|||
try:
|
||||
convert_image(poster_path, new_poster_path)
|
||||
logger.info(f'Converted invalid poster {poster_path} to {new_poster_path}')
|
||||
except Exception:
|
||||
logger.error(f'Failed to convert invalid poster {poster_path} to {new_poster_path}',
|
||||
exc_info=True)
|
||||
except Exception as e:
|
||||
logger.error(f'Failed to convert invalid poster {poster_path} to {new_poster_path}', exc_info=e)
|
||||
continue
|
||||
else:
|
||||
logger.debug(f'Poster was already valid: {new_poster_path}')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue