Skip to content

Commit 1430a6f

Browse files
committed
When no liked songs were found, don't print the KeyError that happened. Just print a message saying no liked songs were found.
1 parent ea2795d commit 1430a6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ytmusic_deleter/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def unlike_all():
236236
try:
237237
your_likes = youtube_auth.get_liked_songs(sys.maxsize)
238238
except Exception:
239-
logging.exception("\tNo liked songs found.")
239+
logging.error("\tNo liked songs found or error retrieving liked songs.")
240240
return False
241241
logging.info(f"\tRetrieved {len(your_likes['tracks'])} liked songs.")
242242
logging.info("Begin unliking songs...")

0 commit comments

Comments
 (0)