Fix XML error messages

Fixes #825
This commit is contained in:
Unrud 2020-05-22 16:33:04 +02:00
parent 8740357eb2
commit 3be9a22a91
2 changed files with 6 additions and 3 deletions

View file

@ -131,7 +131,7 @@ def make_href(base_prefix, href):
def webdav_error(human_tag):
"""Generate XML error message."""
root = ET.Element(make_clark("D:error"))
root.append(ET.Element(human_tag))
root.append(ET.Element(make_clark(human_tag)))
return root