From 0425429e4d25b4a8b56ceca721e07787d81765de Mon Sep 17 00:00:00 2001 From: Alex Pastel Date: Fri, 3 May 2024 13:39:13 -0600 Subject: [PATCH] channelHandle is absent if user has not created a YouTube channel --- ytmusicapi/mixins/library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytmusicapi/mixins/library.py b/ytmusicapi/mixins/library.py index abcd6a6..2aa2343 100644 --- a/ytmusicapi/mixins/library.py +++ b/ytmusicapi/mixins/library.py @@ -440,7 +440,7 @@ class LibraryMixin(MixinProtocol): ACCOUNT_PHOTO_URL = [*ACCOUNT_INFO, "accountPhoto", "thumbnails", 0, "url"] account_name = nav(response, ACCOUNT_NAME) - channel_handle = nav(response, ACCOUNT_CHANNEL_HANDLE) + channel_handle = nav(response, ACCOUNT_CHANNEL_HANDLE, none_if_absent=True) account_photo_url = nav(response, ACCOUNT_PHOTO_URL) return {