Skip to content

Commit

Permalink
added error catching for Overflow Error
Browse files Browse the repository at this point in the history
  • Loading branch information
diannamcallister committed May 29, 2019
1 parent 8e880f2 commit 90b65c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datefinder/__init__.py
Expand Up @@ -100,7 +100,7 @@ def parse_date_string(self, date_string, captures):
# otherwise self._find_and_replace method might corrupt them
try:
as_dt = parser.parse(date_string, default=self.base_date)
except ValueError:
except (ValueError, OverflowError):
# replace tokens that are problematic for dateutil
date_string, tz_string = self._find_and_replace(date_string, captures)

Expand Down

0 comments on commit 90b65c3

Please sign in to comment.