packtpub-downloader icon indicating copy to clipboard operation
packtpub-downloader copied to clipboard

not work

Open SilverPro7 opened this issue 6 years ago • 1 comments

python main.py -e [email protected] -p nopassword -d media -b pdf,epub,mobi,code You are in! Traceback (most recent call last): File "main.py", line 226, in main(sys.argv[1:]) File "main.py", line 198, in main books = get_books(user, is_verbose=verbose, is_quiet=quiet) File "main.py", line 41, in get_books print(f'You have {str(r.json()["count"])} books') KeyError: 'count'

How to fix it?

SilverPro7 avatar Nov 09 '19 13:11 SilverPro7

Hi @SilverPro7, some other people have run into this problem, so here's a comment that should hopefully help. If this doesn't help, or you're still seeing the error after trying one or both of the links there, please let me know and I'll take a look.

BurnhamG avatar Nov 11 '19 12:11 BurnhamG