mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Catalog generation: Ignore invalid pubdates
This commit is contained in:
parent
4a574c1a0f
commit
a539f24a0a
@ -2746,7 +2746,10 @@ class CatalogBuilder(object):
|
|||||||
# Date of publication
|
# Date of publication
|
||||||
if book['date']:
|
if book['date']:
|
||||||
pubdate = book['date']
|
pubdate = book['date']
|
||||||
pubmonth, pubyear = pubdate.split()
|
try:
|
||||||
|
pubmonth, pubyear = pubdate.split()
|
||||||
|
except Exception:
|
||||||
|
pubmonth = pubyear = ''
|
||||||
else:
|
else:
|
||||||
pubdate = pubyear = pubmonth = ''
|
pubdate = pubyear = pubmonth = ''
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user