From 1bc635ac8a404ef30fcdb52288fa690d0d14cddd Mon Sep 17 00:00:00 2001 From: Patrick de Mars Date: Fri, 6 Sep 2024 16:53:32 +0100 Subject: [PATCH] fix: correct error message for SP type check --- sp2ts/sp2ts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sp2ts/sp2ts.py b/sp2ts/sp2ts.py index c01fd1a..0ab9564 100644 --- a/sp2ts/sp2ts.py +++ b/sp2ts/sp2ts.py @@ -313,7 +313,7 @@ def _max_sp(date_): def _validate_sp(name, sp_, date_): if not isinstance(sp_, int): - raise TypeError(f"`{name}` must be of type string") + raise TypeError(f"`{name}` must be of type int") max_sp = _max_sp(date_) if not 1 <= sp_ <= max_sp: raise ValueError(f"`{name}` must be in the interval 1 <= {name} <= {max_sp} on date "