Skip to content

Commit 6973296

Browse files
authored
Actually raise exception
1 parent 9e5d520 commit 6973296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parse.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def strf_date_convert(x, _, type):
288288
elif is_time:
289289
return dt.time()
290290
else:
291-
ValueError("Datetime not a date nor a time?")
291+
raise ValueError("Datetime not a date nor a time?")
292292

293293

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

0 commit comments

Comments
 (0)