We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd1f1db commit 15d83f2Copy full SHA for 15d83f2
spotify2ytmusic/cli.py
@@ -6,6 +6,23 @@
6
7
from . import backend
8
9
+import ytmusicapi.navigation as navigation
10
+
11
+original_nav = navigation.nav
12
13
14
+def debug_nav_wrapper(*args, **kwargs):
15
+ try:
16
+ return original_nav(*args, **kwargs)
17
+ except KeyError as e:
18
+ print(
19
+ f"NAV was called with args={args!r} kwargs={kwargs!r}, raised exception: {e}"
20
+ )
21
+ raise
22
23
24
+navigation.nav = debug_nav_wrapper
25
26
27
def list_liked_albums():
28
"""
0 commit comments