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

KeyError: 'description' in repos command #18

Closed
raydouglass opened this issue Jun 24, 2022 · 2 comments
Closed

KeyError: 'description' in repos command #18

raydouglass opened this issue Jun 24, 2022 · 2 comments
Assignees
Labels

Comments

@raydouglass
Copy link

Suddenly just started to get this error from version 3.0.0 of the library:

$ docker-hub repos -o rapidsai
Traceback (most recent call last):
  File "/Users/rdouglass/miniforge3/envs/dockerhubtest/bin/docker-hub", line 8, in <module>
    sys.exit(main())
  File "/Users/rdouglass/miniforge3/envs/dockerhubtest/lib/python3.9/site-packages/docker_hub/cli.py", line 74, in main
    command.run(docker_hub_client, args)
  File "/Users/rdouglass/miniforge3/envs/dockerhubtest/lib/python3.9/site-packages/docker_hub/commands/repos.py", line 23, in run
    rows.append([repo['name'], repo['description'],
KeyError: 'description'

It looks like description isn't provided by the API anymore.

@amalfra amalfra added the bug label Jun 25, 2022
@amalfra amalfra self-assigned this Jun 25, 2022
@amalfra
Copy link
Owner

amalfra commented Jun 25, 2022

@raydouglass Thanks for reporting the bug. This will be fixed in the upcoming release that's going to happen soon.

@amalfra
Copy link
Owner

amalfra commented Jun 25, 2022

@raydouglass Latest release of V4.0 fixes this. As API no longer returns description instead of that "Repository Type" will be shown.

@amalfra amalfra closed this as completed Jun 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants