Skip to content

Commit ba8c1bf

Browse files
Merge pull request #795 from shlomi-shalem/tornado-transport-hotfix
`TornadoAsyncTransport` bug fix
2 parents cd9861b + ad751a5 commit ba8c1bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/zeep/tornado/transport.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,12 @@ def fetch(self, address, method, headers, message=None):
124124
kwargs['body'] = message
125125

126126
http_req = httpclient.HTTPRequest(address, **kwargs)
127-
response = yield async_client.fetch(http_req)
127+
response = yield async_client.fetch(http_req, raise_error=False)
128128

129129
raise gen.Return(self.new_response(response))
130130

131-
def new_response(self, response):
131+
@staticmethod
132+
def new_response(response):
132133
"""Convert an tornado.HTTPResponse object to a requests.Response object"""
133134
new = Response()
134135
new._content = response.body

0 commit comments

Comments
 (0)