From 1dca31ab6d31d2ac7ae58640fa50ddd003210766 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 27 Jan 2024 18:50:36 +0200 Subject: [PATCH] Update aiogram/utils/keyboard.py Co-authored-by: Suren Khorenyan --- aiogram/utils/keyboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/utils/keyboard.py b/aiogram/utils/keyboard.py index 8ff8463f..2f529c60 100644 --- a/aiogram/utils/keyboard.py +++ b/aiogram/utils/keyboard.py @@ -141,7 +141,7 @@ class KeyboardBuilder(Generic[ButtonType], ABC): if not isinstance(size, int): raise ValueError("Only int sizes are allowed") if size not in range(self.min_width, self.max_width + 1): - raise ValueError(f"Row size {size} are not allowed") + raise ValueError(f"Row size {size} is not allowed, range: [{self.min_width}, {self.max_width}]") return size def export(self) -> List[List[ButtonType]]: