Fix error message when tornado or pycurl is not installed

This commit is contained in:
Emmanuel Bouton 2017-07-20 17:01:10 +02:00
parent 42bb1a64ca
commit 1c0574d05e

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