Catch None for types

pull/38/head
Luigi311 2023-01-27 23:45:03 -07:00
parent aa76b83428
commit 00102891a5
1 changed files with 2 additions and 2 deletions

View File

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