From 8ff292dc8d54f4e827fd783f60c6ee7b6dc47f3d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 28 May 2021 23:00:46 +0100 Subject: [PATCH] Check that file exists --- theme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme.py b/theme.py index ea67c2081..894ee0cc0 100644 --- a/theme.py +++ b/theme.py @@ -19,7 +19,7 @@ def exportTheme(baseDir: str, theme: str) -> bool: """Exports a theme as a zip file """ themeDir = baseDir + '/theme/' + theme - if not os.path.isdir(themeDir): + if not os.path.isfile(themeDir + '/theme.json'): return False if not os.path.isdir(baseDir + '/exports'): os.mkdir(baseDir + '/exports')