Warning when validation fails on video upsert.

This commit is contained in:
Roland 2022-04-29 19:30:53 -06:00
parent 8318224db6
commit 4058f22428
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -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)