Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Use RequestSendFailed when fail to parse content type headers #4362

Merged
merged 2 commits into from
Jan 9, 2019

Conversation

erikjohnston
Copy link
Member

@erikjohnston erikjohnston commented Jan 8, 2019

Using RequestSendFailed exception here to indicate that this is an "expected" error, rather than an error in our app.

@erikjohnston erikjohnston requested a review from a team January 8, 2019 14:23
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, but I suddenly realise that the docstrings on all the things that call _send_request need updating, because they carefully list all the exceptions and don't mention RequestSendFailed. That's not really part of this PR, but could you sort it out (either by updating this PR or opening a new one)?

@erikjohnston
Copy link
Member Author

Oh, so they do. I thought they didn't for some reason :S Will merge this and then fix in a separate PR just so that I can deploy this on matrix.org to see if it fixes most of the stack traces.

@erikjohnston erikjohnston merged commit d1d81d0 into develop Jan 9, 2019
@erikjohnston
Copy link
Member Author

(Fixed in #4368)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants