mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Handling poorly structure dates that result in an overflow error.
This commit is contained in:
parent
a22a3fe1f7
commit
1243060820
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue