Skip to content

Commit

Permalink
Update src/enlyze/validators.py
Browse files Browse the repository at this point in the history
Co-authored-by: Mohamed Attia <[email protected]>
  • Loading branch information
denizs and cipherself authored Oct 9, 2023
1 parent cd443a5 commit 9052eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/enlyze/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def validate_start_and_end(start: datetime, end: datetime) -> tuple[datetime, da

start = _ensure_datetime_aware(start)
end = _ensure_datetime_aware(end)
if start > end:
if start >= end:
raise EnlyzeError("Start must be earlier than end.")
return start, end

Expand Down

0 comments on commit 9052eae

Please sign in to comment.