Handling poorly structure dates that result in an overflow error.

This commit is contained in:
Samuel Clay 2016-04-18 16:20:16 -07:00
parent a22a3fe1f7
commit 1243060820

View file

@ -74,7 +74,7 @@ def pre_process_story(entry):
if not publish_date and entry.get('published'):
try:
publish_date = dateutil.parser.parse(entry.get('published')).replace(tzinfo=None)
except (ValueError, TypeError):
except (ValueError, TypeError, OverflowError):
pass
if publish_date: