From ef2d424bc912394c3eba2bc0ce939522ebeda157 Mon Sep 17 00:00:00 2001 From: haruna Date: Tue, 25 May 2021 19:52:28 +0800 Subject: [PATCH] Fix "ProtocolError" object attribute error "xmlrpc.client.ProtocolError" does not have the "faultString" attribute, the correct attribute of error message is "errmsg". Checkout the python3 doc: https://docs.python.org/3/library/xmlrpc.client.html#xmlrpc.client.ProtocolError.errmsg --- cesi/core/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cesi/core/handlers.py b/cesi/core/handlers.py index 14a391c..c79a51b 100644 --- a/cesi/core/handlers.py +++ b/cesi/core/handlers.py @@ -10,7 +10,7 @@ def wrapped(*args, **kwargs): except xmlrpc.client.Fault as err: return False, err.faultString except xmlrpc.client.ProtocolError as err: - return False, err.faultString + return False, err.errmsg except Exception as err: return False, str(err)