mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 11:26:25 -05:00
Warning when validation fails on video upsert.
This commit is contained in:
parent
8318224db6
commit
4058f22428
1 changed files with 2 additions and 2 deletions
|
|
@ -733,10 +733,10 @@ def upsert_video(session: Session, video_path: pathlib.Path, channel: Channel =
|
|||
validate_video(video, channel.generate_posters if channel else False)
|
||||
# All data about the Video has been found, we should not attempt to validate it again.
|
||||
video.validated = True
|
||||
except Exception:
|
||||
except Exception as e:
|
||||
# Could not validate, this could be an issue with a file. This should not prevent the video from being
|
||||
# inserted.
|
||||
pass
|
||||
logger.warning(f'Failed to validate {video}', exc_info=e)
|
||||
|
||||
try:
|
||||
session.add(video)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue