mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -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
|
||||
if book['date']:
|
||||
pubdate = book['date']
|
||||
try:
|
||||
pubmonth, pubyear = pubdate.split()
|
||||
except Exception:
|
||||
pubmonth = pubyear = ''
|
||||
else:
|
||||
pubdate = pubyear = pubmonth = ''
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user