Skip to content

Commit

Permalink
Merge pull request #105 from diannamcallister/master
Browse files Browse the repository at this point in the history
added error catching for Overflow Error
  • Loading branch information
akoumjian committed May 27, 2020
2 parents 6700231 + 90b65c3 commit f36d243
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 f36d243

Please sign in to comment.