fix(checkpoint): correct error message

This commit is contained in:
Karim shoair
2026-02-15 04:36:43 +02:00
parent e35ba3455c
commit b19fa5e694
+2 -2
View File
@@ -32,8 +32,8 @@ class CheckpointManager:
if not isinstance(interval, (int, float)):
raise TypeError("Checkpoints interval must be integer or float.")
else:
if interval <= 0:
raise ValueError("Checkpoints interval must be greater than 0.")
if interval < 0:
raise ValueError("Checkpoints interval must be equal or greater than 0.")
async def has_checkpoint(self) -> bool:
"""Check if a checkpoint exists."""