From 8ad42fb3e72d189befc31b5cd7a612128438a94d Mon Sep 17 00:00:00 2001 From: blacktwin Date: Mon, 16 Mar 2020 10:34:55 -0400 Subject: [PATCH] #210 expand exception to anything actually report the offending section id --- utility/plex_api_share.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utility/plex_api_share.py b/utility/plex_api_share.py index cba4028..143b533 100644 --- a/utility/plex_api_share.py +++ b/utility/plex_api_share.py @@ -159,8 +159,8 @@ def get_ratings_lst(section_id): ratings_keys = content.json()['MediaContainer']['Directory'] ratings_lst = [x['title'] for x in ratings_keys] return ratings_lst - except KeyError: - print("Unable to pull ratings from section ID: {}.") + except Exception: + print("Unable to pull ratings from section ID: {}.".format(section_id)) pass