mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
[PR #577] [MERGED] Prevent KeyError when using get_account_info() on a user that doesn't have a YouTube channel #657
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#657
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/sigma67/ytmusicapi/pull/577
Author: @apastel
Created: 5/3/2024
Status: ✅ Merged
Merged: 5/4/2024
Merged by: @sigma67
Base:
main← Head:patch-1📝 Commits (1)
d4f4983channelHandle is absent if user has not created a YouTube channel📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
ytmusicapi/mixins/library.py(+1 -1)📄 Description
get_account_info()raises a KeyError if the user does not have a channel handle because they never created a YouTube channel. Seems like a perfect reason to use the handynone_if_absentflag :)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.