Skip to content

throwing a timeout error when the underlying crochet impl raises timeout#49

Open
kfreedland wants to merge 1 commit into
Yelp:masterfrom
kfreedland:throw-timeout-error
Open

throwing a timeout error when the underlying crochet impl raises timeout#49
kfreedland wants to merge 1 commit into
Yelp:masterfrom
kfreedland:throw-timeout-error

Conversation

@kfreedland
Copy link
Copy Markdown

No description provided.

Comment thread swaggerpy/exception.py Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should these base extend a common base exception that is specific to swaggerpy?

It's often nice to be able to catch some general error without worry about catching unrelated things. Maybe this needs a SwaggerRequestError as a base?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I do like that idea let me add that!

@prat0318
Copy link
Copy Markdown
Contributor

lgtm ... a unit test case which assertRaises this error would be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants