mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 17:33:44 +00:00
Don't use before reference.
This commit is contained in:
parent
29ed9f8181
commit
d8fdbb853c
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ class CallbackData:
|
||||||
elif len(sep) != 1:
|
elif len(sep) != 1:
|
||||||
raise ValueError(f"Length of sep should be equals to 1")
|
raise ValueError(f"Length of sep should be equals to 1")
|
||||||
elif sep in prefix:
|
elif sep in prefix:
|
||||||
raise ValueError(f"Symbol '{self.sep}' can't be used in prefix")
|
raise ValueError(f"Symbol '{sep}' can't be used in prefix")
|
||||||
elif not parts:
|
elif not parts:
|
||||||
raise TypeError('Parts is not passed!')
|
raise TypeError('Parts is not passed!')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue