Skip to content

KeyError: 'count' #37

@G66K-CODE

Description

@G66K-CODE

packtpub-downloader | You are in!
packtpub-downloader | Traceback (most recent call last):
packtpub-downloader | File "/app/main.py", line 226, in
packtpub-downloader | main(sys.argv[1:])
packtpub-downloader | File "/app/main.py", line 198, in main
packtpub-downloader | books = get_books(user, is_verbose=verbose, is_quiet=quiet)
packtpub-downloader | File "/app/main.py", line 41, in get_books
packtpub-downloader | print(f'You have {str(r.json()["count"])} books')
packtpub-downloader | KeyError: 'count'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions