From 5824e6c0cc562c3dea96c306a78b336092f0b797 Mon Sep 17 00:00:00 2001 From: Luigi311 Date: Wed, 8 Mar 2023 22:21:40 -0700 Subject: [PATCH] cleanup --- src/plex.py | 4 ++-- test/test_watched.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plex.py b/src/plex.py index 10b8859..8302e9e 100644 --- a/src/plex.py +++ b/src/plex.py @@ -53,7 +53,7 @@ def get_user_library_watched_show(show): m = re.match(r"(.*)://(.*)", guid.id) guid_source, guid_id = m.group(1).lower(), m.group(2) episode_guids_temp[guid_source] = guid_id - except: + except Exception: logger( f"Plex: Failed to get guids for {episode.title} in {show.title}, Using location only", 1, @@ -70,7 +70,7 @@ def get_user_library_watched_show(show): return show_guids, episode_guids - except Exception as e: + except Exception: return {}, {} diff --git a/test/test_watched.py b/test/test_watched.py index 5f3de96..8257457 100644 --- a/test/test_watched.py +++ b/test/test_watched.py @@ -302,7 +302,7 @@ def test_mapping_cleanup_watched(): def test_combine_watched_dicts(): - input = [ + input_watched = [ { "test3": { "Anime Movies": [ @@ -407,4 +407,4 @@ def test_combine_watched_dicts(): } } - assert combine_watched_dicts(input) == expected + assert combine_watched_dicts(input_watched) == expected