From a09f625667fbd4224f6dd0fc4e609892c1b6e94c Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 24 Nov 2018 22:38:02 +0200 Subject: [PATCH] Typo --- aiogram/utils/callback_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aiogram/utils/callback_data.py b/aiogram/utils/callback_data.py index 608d261d..2bf0d2da 100644 --- a/aiogram/utils/callback_data.py +++ b/aiogram/utils/callback_data.py @@ -64,11 +64,11 @@ class CallbackData: raise ValueError(f"Value for '{part}' is not passed!") if not isinstance(value, str): - raise TypeError(f"Prefix must be instance of str not {type(value).__name__}") + raise TypeError(f"Value must be instance of str not {type(value).__name__}") elif not value: raise ValueError(f"Value for part {part} can't be empty!'") elif self.sep in value: - raise ValueError(f"Symbol bounded as separator can't be used in values of parts") + raise ValueError(f"Symbol defined as separator can't be used in values of parts") data.append(value)