fix not starting due to missing translation fixes #815
This commit is contained in:
parent
20346a90dc
commit
4f5e025de1
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user