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

"AttributeError: 'NoneType' object has no attribute 'keys'" when trying to get chapters #2

Closed
pepoboyii opened this issue May 27, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@pepoboyii
Copy link

When I use chapter = api.get_chapter(id = "d86cf65b-5f6c-437d-a0af-19a31f94ec55") I get the error in the title.

This error occurs in the file "url_models.py" in line 89: if "result" in str(data.keys()):

I expected a list of chapters. This occurred in Windows 10, when making a file in Visual Studio Code.

@EMACC99 EMACC99 self-assigned this May 27, 2021
@EMACC99 EMACC99 added the bug Something isn't working label May 27, 2021
@EMACC99
Copy link
Owner

EMACC99 commented May 27, 2021

Doing a little debugging it shows that there is a 404 response from the site. Can you tell me how did you get the Chapter Id?

@pepoboyii
Copy link
Author

Oh well look at me. I input the chapter id incorrectly. Please accept my humble apologies for wasting your time.

@EMACC99
Copy link
Owner

EMACC99 commented May 27, 2021

It's ok, this made me realise that I need to put more information in the custom error classes that are raised in the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants