Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cli.py fix KeyError: 'attributes' #150

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PogusTheWhisper
Copy link

Traceback (most recent call last):
File "C:\Users\Naphat Sornwichai\AppData\Local\Programs\Python\Python312\Lib\site-packages\gamdl\cli.py", line 487, in main
f'({queue_progress}) Downloading "{track_metadata["attributes"]["name"]}"'
~~~~~~~~~~~~~~^^^^^^^^^^^^^^
KeyError: 'attributes'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\Naphat Sornwichai\AppData\Local\Programs\Python\Python312\Scripts\gamdl.exe_main
.py", line 7, in
File "C:\Users\Naphat Sornwichai\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Naphat Sornwichai\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\Naphat Sornwichai\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Naphat Sornwichai\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Naphat Sornwichai\AppData\Local\Programs\Python\Python312\Lib\site-packages\gamdl\cli.py", line 764, in main
f'({queue_progress}) Failed to download "{track_metadata["attributes"]["name"]}"',
~~~~~~~~~~~~~~^^^^^^^^^^^^^^
KeyError: 'attributes'

@PogusTheWhisper
Copy link
Author

still have this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant