From 4058f2242880052a48fd9c52d8e6a623967dd727 Mon Sep 17 00:00:00 2001 From: Roland Date: Fri, 29 Apr 2022 19:30:53 -0600 Subject: [PATCH] Warning when validation fails on video upsert. --- modules/videos/lib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/videos/lib.py b/modules/videos/lib.py index 3488927c..5c405d63 100644 --- a/modules/videos/lib.py +++ b/modules/videos/lib.py @@ -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)