From 4f5e025de1039967722b20ebe6a01a42903d2227 Mon Sep 17 00:00:00 2001 From: alfrix Date: Sat, 26 Nov 2022 11:34:38 -0300 Subject: [PATCH] fix not starting due to missing translation fixes #815 --- ks_includes/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ks_includes/config.py b/ks_includes/config.py index f2686925..a8bd7120 100644 --- a/ks_includes/config.py +++ b/ks_includes/config.py @@ -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):