Merge pull request #42424 from goten4/2016.11

Fix error message when tornado or pycurl is not installed
This commit is contained in:
Mike Place 2017-07-20 16:53:40 -05:00 committed by GitHub
commit d9df97e5a3

View file

@ -456,8 +456,8 @@ def query(url,
# We want to use curl_http if we have a proxy defined
if proxy_host and proxy_port:
if HAS_CURL_HTTPCLIENT is False:
ret['error'] = ('proxy_host and proxy_port has been set. This requires pycurl, but the '
'pycurl library does not seem to be installed')
ret['error'] = ('proxy_host and proxy_port has been set. This requires pycurl and tornado, '
'but the libraries does not seem to be installed')
log.error(ret['error'])
return ret