Skip to content

Commit

Permalink
Merge 99c1d8b into a7858f6
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaensch committed Oct 25, 2020
2 parents a7858f6 + 99c1d8b commit e450aa6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bravado/http_future.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ def wrapper(self, *args, **kwargs):

try:
return func(self, *args, **kwargs)
except timeout_errors as exception:
self.future._raise_timeout_error(exception)
except connection_errors as exception:
self.future._raise_connection_error(exception)
except timeout_errors as exception:
self.future._raise_timeout_error(exception)

return typing.cast(F, wrapper)

Expand Down
3 changes: 2 additions & 1 deletion bravado/requests_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import requests.auth
import requests.exceptions
import requests
import six
import typing
from bravado_core.operation import Operation
Expand Down Expand Up @@ -237,7 +238,7 @@ def build_timeout(
return timeout

def result(self, timeout=None):
# type: (typing.Optional[float]) -> T
# type: (typing.Optional[float]) -> requests.Response
"""Blocking call to wait for API response
:param timeout: timeout in seconds to wait for response. Defaults to
Expand Down

0 comments on commit e450aa6

Please sign in to comment.