From 55fa97387e340343dc9f24506cad33fdf71d5600 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 2 Aug 2021 21:03:37 +0100 Subject: [PATCH] Test for system language --- daemon.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon.py b/daemon.py index c4ef258f6..08d377f83 100644 --- a/daemon.py +++ b/daemon.py @@ -15158,6 +15158,9 @@ def runDaemon(sharedItemsFederatedDomains: [], if not unitTest: httpd.translate, httpd.systemLanguage = \ loadTranslationsFromFile(baseDir, language) + if not httpd.systemLanguage: + print('ERROR: no system language loaded') + sys.exit() print('System language: ' + httpd.systemLanguage) if not httpd.translate: print('ERROR: no translations were loaded')