]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix raise_error=False in synchronous HTTPClient.
authorBen Darnell <ben@bendarnell.com>
Thu, 5 Mar 2015 03:27:41 +0000 (22:27 -0500)
committerBen Darnell <ben@bendarnell.com>
Thu, 5 Mar 2015 03:27:41 +0000 (22:27 -0500)
The call to rethrow was redundant when raise_error was true,
and caused settings of raise_error=False to be ignored.

Closes #1351.

tornado/httpclient.py

index abb81cf0a533c0c3f133b8031d53a6725f335f4e..c16563f633bf745444e000072eecdc41f87de303 100644 (file)
@@ -100,7 +100,6 @@ class HTTPClient(object):
         """
         response = self._io_loop.run_sync(functools.partial(
             self._async_client.fetch, request, **kwargs))
-        response.rethrow()
         return response