Skip to content

Commit

Permalink
raise ParseError if we get an exception on is_iso8601()
Browse files Browse the repository at this point in the history
  • Loading branch information
singingwolfboy authored and micktwomey committed Sep 28, 2022
1 parent 21f5368 commit fde429d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iso8601/iso8601.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,5 @@ def is_iso8601(datestring: str) -> bool:
try:
m = ISO8601_REGEX.match(datestring)
return bool(m)
except Exception:
return False
except Exception as e:
raise ParseError(e)

0 comments on commit fde429d

Please sign in to comment.