Skip to content

Commit

Permalink
Fixes scieloorg#1266 - Tratamento da exceção *XMLDoctypeError* na val…
Browse files Browse the repository at this point in the history
…idação de XMLs
  • Loading branch information
Gustavo Fonseca committed May 13, 2016
1 parent ead2f0a commit 9d98667
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scielomanager/validator/utils.py
Expand Up @@ -49,7 +49,8 @@ def analyze_xml(file):
try:
xml = packtools.XMLValidator.parse(file)

except (lxml.etree.XMLSyntaxError, IOError, ValueError) as e:
except (lxml.etree.XMLSyntaxError, IOError, ValueError,
packtools.exceptions.PacktoolsError) as e:
err = e

else:
Expand Down

0 comments on commit 9d98667

Please sign in to comment.