Skip to content
Snippets Groups Projects
Commit 18876c0e authored by Magnus Giesbert's avatar Magnus Giesbert
Browse files

Resolve "Fehler in "Pushing to Wiki" kann Passwort enthalten"

parent e52da0cb
Branches
No related tags found
No related merge requests found
...@@ -645,6 +645,12 @@ def push_to_dokuwiki_async(protocol_id, content, summary): ...@@ -645,6 +645,12 @@ def push_to_dokuwiki_async(protocol_id, content, summary):
return _make_error( return _make_error(
protocol, "Pushing to Wiki", protocol, "Pushing to Wiki",
"Pushing to Wiki failed." "") "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: except xmlrpc.client.Error as exception:
return _make_error( return _make_error(
protocol, "Pushing to Wiki", "XML RPC Exception", protocol, "Pushing to Wiki", "XML RPC Exception",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment