mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 18:19:34 +00:00
Oops. Wrong path.
This commit is contained in:
parent
3e30f29aba
commit
43dddcafe4
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ class I18nMiddleware(BaseMiddleware):
|
|||
translations = {}
|
||||
|
||||
for name in os.listdir(self.path):
|
||||
if not os.path.isdir(self.path):
|
||||
if not os.path.isdir(os.path.join(self.path, name)):
|
||||
continue
|
||||
mo_path = os.path.join(self.path, name, 'LC_MESSAGES', self.domain + '.mo')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue