mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
#237 Prevent syntax warning
This commit is contained in:
parent
23325e09e3
commit
84de4e95f6
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ class I18nMiddleware(BaseMiddleware):
|
|||
locale = self.ctx_locale.get()
|
||||
|
||||
if locale not in self.locales:
|
||||
if n is 1:
|
||||
if n == 1:
|
||||
return singular
|
||||
return plural
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue