fix(checkpoint): correct error message
This commit is contained in:
@@ -32,8 +32,8 @@ class CheckpointManager:
|
|||||||
if not isinstance(interval, (int, float)):
|
if not isinstance(interval, (int, float)):
|
||||||
raise TypeError("Checkpoints interval must be integer or float.")
|
raise TypeError("Checkpoints interval must be integer or float.")
|
||||||
else:
|
else:
|
||||||
if interval <= 0:
|
if interval < 0:
|
||||||
raise ValueError("Checkpoints interval must be greater than 0.")
|
raise ValueError("Checkpoints interval must be equal or greater than 0.")
|
||||||
|
|
||||||
async def has_checkpoint(self) -> bool:
|
async def has_checkpoint(self) -> bool:
|
||||||
"""Check if a checkpoint exists."""
|
"""Check if a checkpoint exists."""
|
||||||
|
|||||||
Reference in New Issue
Block a user