diff --git a/parse.py b/parse.py index 51a6953..80242e1 100644 --- a/parse.py +++ b/parse.py @@ -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