From 97c884de42daba90a1ea3584934084e1c7d482b1 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Thu, 18 Feb 2021 20:53:31 +0100 Subject: [PATCH] Fix a potential bug --- nw/core/project.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nw/core/project.py b/nw/core/project.py index c00d6a18..f8bfbecd 100644 --- a/nw/core/project.py +++ b/nw/core/project.py @@ -1234,6 +1234,8 @@ class NWProject(): theLang = self.projLang if theLang is None: theLang = self.mainConf.spellLanguage + if theLang is None: + theLang = "en" lngShort = theLang.split("_")[0] loadFile = os.path.join(self.mainConf.nwLangPath, "project_en.json")