diff --git a/tasks.py b/tasks.py index 5cd829bff25cab6041b806381487766ab5733077..5612ca2f0b71f170a33af478e15d3eed3f238538 100644 --- a/tasks.py +++ b/tasks.py @@ -645,6 +645,12 @@ def push_to_dokuwiki_async(protocol_id, content, summary): return _make_error( protocol, "Pushing to Wiki", "Pushing to Wiki failed." "") + except xmlrpc.client.ProtocolError as prot_err: # makes sure the WIKI_API_URL does not get leaked + error_msg = "A ProtocolError occurred with code:'{}'; and Message:'{}'".format( + prot_err.errcode, prot_err.errmsg) + return _make_error( + protocol, "Pushing to Wiki", "XML RPC ProtocolError", + error_msg) except xmlrpc.client.Error as exception: return _make_error( protocol, "Pushing to Wiki", "XML RPC Exception",