Skip to content

Commit

Permalink
Merge pull request #196 from shenanigansd/patch-1
Browse files Browse the repository at this point in the history
Actually raise exception
  • Loading branch information
wimglenn authored Nov 16, 2024
2 parents 9e5d520 + 6973296 commit 30da9e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def strf_date_convert(x, _, type):
elif is_time:
return dt.time()
else:
ValueError("Datetime not a date nor a time?")
raise ValueError("Datetime not a date nor a time?")


# ref: https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes
Expand Down

0 comments on commit 30da9e4

Please sign in to comment.