on-line fix

pull/1/head
eric 2014-10-25 12:02:27 -04:00
parent f9d8683f64
commit 96a94378a2
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ def makemarc(marcfile, edition):
except IndexError:
# fun fun fun
new_field_value= now.strftime('%y%m%d')+'s'
if len(edition.publication_date)>3:
if edition.publication_date and len(edition.publication_date)>3:
new_field_value += edition.publication_date[0:4]
else:
new_field_value += '||||'