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

Merge branch '228-confidential-issue' into 'master'

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

Closes #228

See merge request protokollsystem/proto3!24
parents e52da0cb 18876c0e
No related branches found
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