Skip to content

Commit 5c5d08e

Browse files
committed
Fix unbound local error
1 parent 21c0057 commit 5c5d08e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hikka/translations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ def __init__(self, client: CustomTelegramClient, db: Database):
8787
async def init(self) -> bool:
8888
self._data = self._get_pack_content(PACKS / "en.yml")
8989
self.raw_data["en"] = self._data.copy()
90+
any_ = False
9091
if lang := self.db.get(__name__, "lang", False):
91-
any_ = False
9292
for language in lang.split():
9393
if utils.check_url(language):
9494
try:

0 commit comments

Comments
 (0)