Skip to content

Conversation

@luigibertaco
Copy link
Contributor

When calling aiohttp.request on _fetch_json_async and the response has a status that is not 200, the block raising the Document error exception is actually throwing an AttributeError.

The reason is that aiohttp.response doesn't have status_code attribute (it is actually called status).

This PR fixes the attribute used on the exception handler block.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 87.963% when pulling 22f4bea on luigibertaco:master into 0e44a49 on qvantel:master.

@luigibertaco
Copy link
Contributor Author

Just noticed that another PR for this issue has been merged.

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

Successfully merging this pull request may close these issues.

2 participants