Fixed display of xml2rfc exceptions when processing draft submission in xml form.

- Legacy-Id: 15371
This commit is contained in:
Henrik Levkowetz 2018-07-17 14:23:18 +00:00
parent a7f789fcab
commit dab5b81ae2

View file

@ -148,7 +148,7 @@ class SubmissionBaseUploadForm(forms.Form):
self.xmltree = parser.parse(normalize=True)
ok, errors = self.xmltree.validate()
except Exception as exc:
raise forms.ValidationError("An exception occurred when trying to process the XML file: %s" % exc)
raise forms.ValidationError("An exception occurred when trying to process the XML file: %s" % exc.msg)
if not ok:
# Each error has properties:
#