mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 09:22:03 +00:00
Typo
This commit is contained in:
parent
b098b06c2e
commit
a09f625667
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue