From 8631654a7045cdcb0e15644037077b34b4f1d9e8 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 12 Jun 2020 13:02:04 +0100 Subject: [PATCH] Exit if no translations --- daemon.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon.py b/daemon.py index 293027aa..75575baa 100644 --- a/daemon.py +++ b/daemon.py @@ -7926,6 +7926,9 @@ def runDaemon(blogsInstance: bool, mediaInstance: bool, print('System language: ' + systemLanguage) httpd.systemLanguage = systemLanguage httpd.translate = loadJson(translationsFile) + if not httpd.translate: + print('ERROR: no translations loaded from ' + translationsFile) + sys.exit() if registration == 'open': httpd.registration = True