when Python was not compiled with https support, log an error to the log file

This commit is contained in:
Alan Hamlett 2014-11-12 19:30:13 -08:00
parent 7609078d5a
commit 5dbb19eb50

View file

@ -318,7 +318,9 @@ def send_action(project=None, branch=None, stats=None, key=None, targetFile=None
if offline:
queue = Queue()
queue.push(data, plugin)
if log.isEnabledFor(logging.DEBUG):
if 'unknown url type: https' in u(sys.exc_info()[1]):
log.error(exception_data)
elif log.isEnabledFor(logging.DEBUG):
log.warn(exception_data)
else:
log.error(exception_data)