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

NameError: name 'response' is not defined - The script for executing the download, when the file does not exist in the collection #44

Open
firebitsbr opened this issue Sep 18, 2022 · 0 comments

Comments

@firebitsbr
Copy link

The script for executing the download, when the file does not exist in the collection (the ideal is to go to the next existing file) in packtpub in the user account, for example, this file does not exist in my account:

Quantum_Computing_with_Silq_Programming.mobi

Finished /home/test/Desktop/packtpub/packtpub-downloader/downloads/Quantum_Computing_with_Silq_Programming/Quantum_Computing_with_Silq_Programming.epub
Starting to download /home/test/Desktop/packtpub/packtpub-downloader/downloads/Quantum_Computing_with_Silq_Programming/Quantum_Computing_with_Silq_Programming.mobi
Traceback (most recent call last):
File "/home/test/Desktop/packtpub/packtpub-downloader/main.py", line 226, in
main(sys.argv[1:])
File "/home/test/Desktop/packtpub/packtpub-downloader/main.py", line 218, in main
download_book(filename, url)
File "/home/test/Desktop/packtpub/packtpub-downloader/main.py", line 107, in download_book
f.write(response.content)
NameError: name 'response' is not defined

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

No branches or pull requests

1 participant