Skip to content

Conversation

FabioFleitas
Copy link
Contributor

Closes #103

@robinjoseph08
Copy link
Contributor

Looks like it's missing coverage, but that's to be expected. I don't think there's any easy way to mock out a 504 to ensure that it works, so can you just add # pragma: no cover to line 26?

raise error.APIConnectionError(resp.content or resp.reason, # pragma: no cover
    resp.content, resp.status_code, resp)

@FabioFleitas
Copy link
Contributor Author

@robinjoseph08 Done

@robinjoseph08
Copy link
Contributor

Awesome, thanks a ton! I'll push a new version today 👍

robinjoseph08 added a commit that referenced this pull request Feb 5, 2016
parse_response now handles 504 Gateway Timeout errors
@robinjoseph08 robinjoseph08 merged commit f90dd03 into lob:master Feb 5, 2016
@robinjoseph08
Copy link
Contributor

Version 2.24 has been released!

@FabioFleitas
Copy link
Contributor Author

Awesome!

@FabioFleitas FabioFleitas deleted the 504-error branch February 6, 2016 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants