Skip to content

Commit

Permalink
Merge pull request #1 from scuerda/pubdate-parsing
Browse files Browse the repository at this point in the history
Added exception in  set_pub_year_month_day for publications that do n…
  • Loading branch information
mfcovington committed Jan 8, 2016
2 parents db07073 + 7144ea9 commit 7ed43be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pubmed_lookup/pubmed_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def set_pub_year_month_day(self, xml_dict):
try:
self.month = datetime.datetime.strptime(
month_short, "%b").month
except ValueError:
except (ValueError, TypeError) as e:
self.month = ''

else:
Expand Down

0 comments on commit 7ed43be

Please sign in to comment.