mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 18:19:34 +00:00
Minor refactoring:
- removed remaining assertions - quotes replaced with double quotes in f-strings
This commit is contained in:
parent
5a905abe87
commit
70fb332fd3
5 changed files with 9 additions and 7 deletions
|
|
@ -239,7 +239,7 @@ class BaseBot:
|
|||
setattr(self, '_parse_mode', None)
|
||||
else:
|
||||
if not isinstance(value, str):
|
||||
raise TypeError(f"Parse mode must be an 'str' not {type(value)}")
|
||||
raise TypeError(f"Parse mode must be str, not {type(value)}")
|
||||
value = value.lower()
|
||||
if value not in ParseMode.all():
|
||||
raise ValueError(f"Parse mode must be one of {ParseMode.all()}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue