Skip to main content

Don’t print an exception here

ID
04996db
date
2024-04-01 12:56:46+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
7137d06
message
Don't print an exception here
changed files
1 file, 1 addition, 2 deletions

Changed files

web/list_liked_youtube_videos.py (4734) → web/list_liked_youtube_videos.py (4708)

diff --git a/web/list_liked_youtube_videos.py b/web/list_liked_youtube_videos.py
index aa5bfc4..826fbcc 100755
--- a/web/list_liked_youtube_videos.py
+++ b/web/list_liked_youtube_videos.py
@@ -96,8 +96,7 @@ class YouTubeClient:
         try:
             request = youtube.channels().list(part="snippet", mine=True)
             request.execute()
-        except Exception as e:
-            print(e)
+        except Exception:
             keyring.delete_password("youtube", label)
             return self.create_youtube_client(label)
         else: