Skip to content

Commit

Permalink
CR fix: add forgotten format
Browse files Browse the repository at this point in the history
  • Loading branch information
bomzheg committed Jul 12, 2022
1 parent 2dffa0e commit fe3d237
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions aiogram/dispatcher/filters/builtin.py
Expand Up @@ -71,13 +71,12 @@ def __init__(self, commands: Union[Iterable[Union[str, BotCommand]], str, BotCom
elif isinstance(commands, Iterable):
if not all(map(lambda cmd: isinstance(cmd, str), commands)):
raise ValueError(
"Command filter doesn't support {} as input. "
"It only supports str, BotCommand object or their Iterable"
"Command filter only supports str, BotCommand object or their Iterable"
)
else:
raise ValueError(
"Command filter doesn't support {} as input. "
"It only supports str, BotCommand object or their Iterable"
"It only supports str, BotCommand object or their Iterable".format(type(commands))
)
commands = [cmd.command if isinstance(cmd, BotCommand) else cmd for cmd in commands]

Expand Down

0 comments on commit fe3d237

Please sign in to comment.