fix not starting due to missing translation fixes #815

This commit is contained in:
alfrix 2022-11-26 11:34:38 -03:00
parent 20346a90dc
commit 4f5e025de1

View File

@ -123,7 +123,7 @@ class KlipperScreenConfig:
if locale.getdefaultlocale()[0].startswith(language):
logging.debug("Using system lang")
lang = language
if lang not in self.lang_list:
if lang is not None and lang not in self.lang_list:
# try to match a parent
for language in self.lang_list:
if lang.startswith(language):