mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #71] get_library_upload_songs() throws KeyError if there are no uploaded songs #52
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#52
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?
Originally created by @apastel on GitHub (Sep 1, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/71
Originally assigned to: @apastel on GitHub.
get_library_upload_albums()returns an empty list when there are no uploaded albums.But
get_library_upload_songs()andget_library_upload_artists()both throw a KeyError if either of them are empty.I propose that they also return an empty list for consistency and ease of error handling.
@sigma67 commented on GitHub (Sep 1, 2020):
Good point, do you want to tackle this?
@apastel commented on GitHub (Sep 1, 2020):
I might be able to, yes.