Skip to content
Snippets Groups Projects
Commit 817f5980 authored by Dmitry Shelepnev's avatar Dmitry Shelepnev
Browse files

Show error description if novalid fb2 parse

parent 3bd10c9f
Branches
Tags
No related merge requests found
......@@ -172,8 +172,8 @@ class FB2(FB2Base):
try:
self.file.seek(0,0)
return etree.parse(self.file)
except:
raise FB2StructureException('the file is not a valid XML')
except Exception as err:
raise FB2StructureException('the file is not a valid XML (%s)'%err)
def __exit__(self, kind, value, traceback):
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment