Show More
@@ -28,6 +28,7 b' import threading' | |||||
28 | import urllib2 |
|
28 | import urllib2 | |
29 | import urlparse |
|
29 | import urlparse | |
30 | import uuid |
|
30 | import uuid | |
|
31 | import traceback | |||
31 |
|
32 | |||
32 | import pycurl |
|
33 | import pycurl | |
33 | import msgpack |
|
34 | import msgpack | |
@@ -197,7 +198,8 b' def _remote_call(url, payload, exception' | |||||
197 | try: |
|
198 | try: | |
198 | response = session.post(url, data=msgpack.packb(payload)) |
|
199 | response = session.post(url, data=msgpack.packb(payload)) | |
199 | except pycurl.error as e: |
|
200 | except pycurl.error as e: | |
200 | raise exceptions.HttpVCSCommunicationError(e) |
|
201 | msg = '{}. pycurl traceback: {}'.format(e, traceback.format_exc()) | |
|
202 | raise exceptions.HttpVCSCommunicationError(msg) | |||
201 | except Exception as e: |
|
203 | except Exception as e: | |
202 | message = getattr(e, 'message', '') |
|
204 | message = getattr(e, 'message', '') | |
203 | if 'Failed to connect' in message: |
|
205 | if 'Failed to connect' in message: |
General Comments 0
You need to be logged in to leave comments.
Login now