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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kfreedland
Copy link

No description provided.

"""Error raised when result() is called from HTTPFuture
and call was actually cancelled
"""


class TimeoutError(Exception):
Copy link
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
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
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