From 00102891a5a8bb5349a2619bf4ab23502186c384 Mon Sep 17 00:00:00 2001 From: Luigi311 Date: Fri, 27 Jan 2023 23:45:03 -0700 Subject: [PATCH] Catch None for types --- src/jellyfin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jellyfin.py b/src/jellyfin.py index 8931a62..71e61bf 100644 --- a/src/jellyfin.py +++ b/src/jellyfin.py @@ -384,9 +384,9 @@ class Jellyfin: continue # If there are multiple types in library raise error - if len(types) > 1: + if types is None or len(types) != 1: logger( - f"Jellyfin: Skipping Library {library_title} due to multiple types: {types}", + f"Jellyfin: Skipping Library {library_title} not a single type: {types}", 1, ) continue