From 1b01ff6ec292c565ba1b30f33c9991da0c2867e6 Mon Sep 17 00:00:00 2001 From: Luigi311 Date: Fri, 27 Jan 2023 10:45:46 -0700 Subject: [PATCH] Log if multiple types and continue instead of error --- src/jellyfin.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/jellyfin.py b/src/jellyfin.py index 3a87a19..8931a62 100644 --- a/src/jellyfin.py +++ b/src/jellyfin.py @@ -385,9 +385,12 @@ class Jellyfin: # If there are multiple types in library raise error if len(types) > 1: - raise Exception( - f"Jellyfin: Library {library_title} has multiple types: {types}" + logger( + f"Jellyfin: Skipping Library {library_title} due to multiple types: {types}", + 1, ) + continue + library_type = types.pop() # Get watched for user