Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Simple OPDS
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Simple OPDS
Commits
817f5980
Commit
817f5980
authored
Feb 27, 2017
by
Dmitry Shelepnev
Browse files
Options
Downloads
Patches
Plain Diff
Show error description if novalid fb2 parse
parent
3bd10c9f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
book_tools/format/fb2.py
+2
-2
2 additions, 2 deletions
book_tools/format/fb2.py
opds_catalog/tests/data/test_badbooks/Tven_Lichnyie_vospominaniya_o_Zhanne_dArk_sera_Lui_de_Konta_eyo_pazha_i_sekretarya.57041.fb2
+3389
-0
3389 additions, 0 deletions
...e_dArk_sera_Lui_de_Konta_eyo_pazha_i_sekretarya.57041.fb2
with
3391 additions
and
2 deletions
book_tools/format/fb2.py
+
2
−
2
View file @
817f5980
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
opds_catalog/tests/data/test_badbooks/Tven_Lichnyie_vospominaniya_o_Zhanne_dArk_sera_Lui_de_Konta_eyo_pazha_i_sekretarya.57041.fb2
0 → 100644
+
3389
−
0
View file @
817f5980
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment