summaryrefslogtreecommitdiffstats
path: root/ipalib/rpc.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/rpc.py')
-rw-r--r--ipalib/rpc.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipalib/rpc.py b/ipalib/rpc.py
index 6ac0cfa83..6d8093a13 100644
--- a/ipalib/rpc.py
+++ b/ipalib/rpc.py
@@ -35,7 +35,7 @@ import threading
import socket
import os
import errno
-from xmlrpclib import Binary, Fault, dumps, loads, ServerProxy, Transport
+from xmlrpclib import Binary, Fault, dumps, loads, ServerProxy, Transport, ProtocolError
import kerberos
from ipalib.backend import Connectible
from ipalib.errors import public_errors, PublicError, UnknownError, NetworkError
@@ -418,3 +418,5 @@ class xmlclient(Connectible):
)
except socket.error, e:
raise NetworkError(uri=self.env.xmlrpc_uri, error=e.args[1])
+ except ProtocolError, e:
+ raise NetworkError(uri=self.env.xmlrpc_uri, error=e.errmsg)