Minor fix: show current NO_ID value of the ID counter when printing error

This commit is contained in:
LinasKo 2024-11-01 20:41:38 +02:00
parent 9eee76a6d1
commit 22d827fac4
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ class IdCounter:
def __init__(self, start_id: int = 0):
self.start_id = start_id
if self.start_id <= self.NO_ID:
raise ValueError("start_id must be greater than -1")
raise ValueError(f"start_id must be greater than {self.NO_ID}")
self.reset()
def reset(self) -> None: