From 85e92e811a487565ad451ccde89c43ed0ec24717 Mon Sep 17 00:00:00 2001 From: RandomRhythm Date: Sun, 15 Dec 2024 14:35:40 -0700 Subject: [PATCH] Update plex_dupefinder.py Ran into this exception, but digging through logs is no fun. A message to the end-user about what went wrong would be helpful. --- plex_dupefinder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plex_dupefinder.py b/plex_dupefinder.py index dcdb01b..da09067 100755 --- a/plex_dupefinder.py +++ b/plex_dupefinder.py @@ -66,6 +66,7 @@ def get_section_type(plex_section_name): plex_section_type = plex.library.section(plex_section_name).type except Exception: log.exception("Exception occurred while trying to lookup the section type for Library: %s", plex_section_name) + print(f'Error accessing library "{plex_section_name}" - Does this library specified in the config exist on the Plex server?') exit(1) return 'episode' if plex_section_type == 'show' else 'movie'