Handle None as identifier value during upload
This commit is contained in:
parent
67bc23ee0c
commit
b4d9e400d9
|
@ -102,10 +102,10 @@ def get_epub_info(tmp_file_path, original_file_name, original_file_extension):
|
|||
|
||||
identifiers = []
|
||||
for node in p.xpath('dc:identifier', namespaces=ns):
|
||||
identifier_name=node.attrib.values()[-1];
|
||||
identifier_value=node.text;
|
||||
if identifier_name in ('uuid','calibre'):
|
||||
continue;
|
||||
identifier_name = node.attrib.values()[-1]
|
||||
identifier_value = node.text
|
||||
if identifier_name in ('uuid', 'calibre') or identifier_value is None:
|
||||
continue
|
||||
identifiers.append([identifier_name, identifier_value])
|
||||
|
||||
if not epub_metadata['title']:
|
||||
|
|
Loading…
Reference in New Issue
Block a user