eric6/E5Network/E5XmlRpcClient.py

changeset 7628
f904d0eef264
parent 7360
9190402e4505
child 7771
787a6b3f8c9f
--- a/eric6/E5Network/E5XmlRpcClient.py	Wed Jun 17 17:12:21 2020 +0200
+++ b/eric6/E5Network/E5XmlRpcClient.py	Wed Jun 17 20:18:54 2020 +0200
@@ -71,9 +71,11 @@
             result as a tuple (function)
         @param errorCallback method to be called in case of an error
             with error code and error string (function)
+        @exception TypeError raised to indicate an illegal 'args' parameter
+            type
         """
-        assert isinstance(args, tuple), \
-            "argument must be tuple or Fault instance"
+        if not isinstance(args, tuple):
+            raise TypeError("argument 'args' must be tuple")
         
         data = xmlrpc.dumps(args, method).encode("utf-8")
         reply = self.__networkManager.post(

eric ide

mercurial