##// END OF EJS Templates
http-client: improve exceptions
marcink -
r2944:2f16baee default
parent child
Show More
@@ -198,7 +198,7 def _remote_call(url, payload, exception
198 try:
198 try:
199 response = session.post(url, data=msgpack.packb(payload))
199 response = session.post(url, data=msgpack.packb(payload))
200 except pycurl.error as e:
200 except pycurl.error as e:
201 msg = '{}. pycurl traceback: {}'.format(e, traceback.format_exc())
201 msg = '{}. \npycurl traceback: {}'.format(e, traceback.format_exc())
202 raise exceptions.HttpVCSCommunicationError(msg)
202 raise exceptions.HttpVCSCommunicationError(msg)
203 except Exception as e:
203 except Exception as e:
204 message = getattr(e, 'message', '')
204 message = getattr(e, 'message', '')
General Comments 0
You need to be logged in to leave comments. Login now