mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
enh: allow empty parts in CallbackData
This commit is contained in:
parent
29d2ffc9ed
commit
d6b93c25a5
1 changed files with 0 additions and 2 deletions
|
|
@ -64,8 +64,6 @@ class CallbackData:
|
|||
if value is not None and not isinstance(value, str):
|
||||
value = str(value)
|
||||
|
||||
if not value:
|
||||
raise ValueError(f"Value for part {part!r} can't be empty!'")
|
||||
if self.sep in value:
|
||||
raise ValueError(f"Symbol {self.sep!r} is defined as the separator and can't be used in parts' values")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue