summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-01-17 09:51:03 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-01-17 09:51:03 -0500
commit2a709f708e0f4c037cc92472a54b6305048f17d4 (patch)
tree02ecc929e80fdd19442198d9b3ca947a62a9375b /src/lib
parentbc189d2fcf247f309899e1f07f08789dac14be13 (diff)
downloadbcfg2-2a709f708e0f4c037cc92472a54b6305048f17d4.tar.gz
bcfg2-2a709f708e0f4c037cc92472a54b6305048f17d4.tar.bz2
bcfg2-2a709f708e0f4c037cc92472a54b6305048f17d4.zip
catch more errors to avoid tracebacks
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Proxy.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/Proxy.py b/src/lib/Proxy.py
index c340cadda..977a49228 100644
--- a/src/lib/Proxy.py
+++ b/src/lib/Proxy.py
@@ -302,12 +302,12 @@ class XMLRPCTransport(xmlrpclib.Transport):
def request(self, host, handler, request_body, verbose=0):
"""Send request to server and return response."""
h = self.make_connection(host)
- self.send_request(h, handler, request_body)
- self.send_host(h, host)
- self.send_user_agent(h)
- self.send_content(h, request_body)
try:
+ self.send_request(h, handler, request_body)
+ self.send_host(h, host)
+ self.send_user_agent(h)
+ self.send_content(h, request_body)
errcode, errmsg, headers = h.getreply()
except (socket.error, SSL_ERROR):
err = sys.exc_info()[1]