mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
[PR #540] [MERGED] nav() now displays some debugging information on KeyError #645
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#645
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/540
Author: @linsomniac
Created: 2/10/2024
Status: ✅ Merged
Merged: 3/1/2024
Merged by: @sigma67
Base:
main← Head:debug_key_error📝 Commits (5)
bf2387enav() now displays some debugging information on KeyError9819ac1nav() fix for walking lists.3b613a8Restructured nav() to more closely match original.b1692fanav() catching when element is None as wellbddcc64Moving try/except out of loop📊 Changes
1 file changed (+3 additions, -4 deletions)
View changed files
📝
ytmusicapi/navigation.py(+3 -4)📄 Description
There's a user reporting a KeyError in nav(), so I've changed it to print out the key and dict for future debugging. Also, a bare Exception was used to capture a dictionary failure, removed that since my change checks for the existence of the key in the dictionary. If this is objectionable at all, you probably should change it to catching a KeyError rather than catching Exception.
This is to gather information for #539
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.