Cleanup logs/exception

This commit is contained in:
Alexis de Lattre 2018-04-27 18:19:21 +02:00
parent 78f920418d
commit fd9373b256
1 changed files with 2 additions and 3 deletions

View File

@ -135,11 +135,10 @@ def check_facturx_xsd(
# if the validation of the XSD fails, we arrive here
logger.error(
"The XML file is invalid against the XML Schema Definition")
logger.error(xml_string)
logger.error('XSD Error: %s', e)
raise Exception(
"The %s XML file is not valid against the official "
"XML Schema Definition. The XML file and the "
"full error have been written in the server logs. "
"XML Schema Definition. "
"Here is the error, which may give you an idea on the "
"cause of the problem: %s." % (flavor.capitalize(), unicode(e)))
return True