From: Ben Darnell Date: Thu, 5 Mar 2015 03:27:41 +0000 (-0500) Subject: Fix raise_error=False in synchronous HTTPClient. X-Git-Tag: v4.2.0b1~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=733a0fa3f2e0b465d1f182816cdb1114a787c963;p=thirdparty%2Ftornado.git Fix raise_error=False in synchronous HTTPClient. The call to rethrow was redundant when raise_error was true, and caused settings of raise_error=False to be ignored. Closes #1351. --- diff --git a/tornado/httpclient.py b/tornado/httpclient.py index abb81cf0a..c16563f63 100644 --- a/tornado/httpclient.py +++ b/tornado/httpclient.py @@ -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