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

This commit is contained in:
LinasKo committed 2024-11-01 20:41:38 +02:00
1 parent 9eee76a6d1
commit 22d827fac4
1 file changed
+1 -1
+1 -1
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: