diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Proxy.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/Proxy.py b/src/lib/Proxy.py index 4cb0bbe80..bb53a24af 100644 --- a/src/lib/Proxy.py +++ b/src/lib/Proxy.py @@ -285,10 +285,9 @@ class XMLRPCTransport(xmlrpclib.Transport): errcode, errmsg, headers = h.getreply() if errcode != 200: - raise xmlrpclib.ProtocolError(host + handler, - errcode, - errmsg, - headers) + # scrub password from the host + hoststr = re.sub(r':[^@]+@', ':******@', host) + handler + raise xmlrpclib.ProtocolError(hoststr, errcode, errmsg, headers) self.verbose = verbose msglen = int(headers.dict['content-length']) |