Fix unbound local error

pull/1/head
hikariatama 2023-04-26 18:55:10 +00:00
parent 21c0057bf0
commit 5c5d08ec9d
1 changed files with 1 additions and 1 deletions

View File

@ -87,8 +87,8 @@ class Translator(BaseTranslator):
async def init(self) -> bool:
self._data = self._get_pack_content(PACKS / "en.yml")
self.raw_data["en"] = self._data.copy()
any_ = False
if lang := self.db.get(__name__, "lang", False):
any_ = False
for language in lang.split():
if utils.check_url(language):
try: