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
ecf08130
Commit
ecf08130
authored
Feb 28, 2017
by
Dmitry Shelepnev
Browse files
Options
Downloads
Patches
Plain Diff
Fix error in FB2sax - error add book with null genre
parent
cc7d4c83
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
book_tools/format/fb2sax.py
+2
-1
2 additions, 1 deletion
book_tools/format/fb2sax.py
with
2 additions
and
1 deletion
book_tools/format/fb2sax.py
+
2
−
1
View file @
ecf08130
...
...
@@ -320,8 +320,9 @@ class FB2sax(BookFile):
def
__detect_series_info
(
self
):
for
s
in
self
.
fb2parser
.
series
.
attrss
:
ser_name
=
s
.
get
(
'
name
'
)
.
strip
(
strip_symbols
)
ser_name
=
s
.
get
(
'
name
'
)
if
ser_name
:
ser_name
=
ser_name
.
strip
(
strip_symbols
)
ser_no
=
s
.
get
(
'
number
'
,
'
0
'
).
strip
(
strip_symbols
)
ser_no
=
int
(
ser_no
)
if
ser_no
.
isdigit
()
else
None
...
...
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