From 9ec5379a9732ea007d7c761d93ae169400fad742 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 12 Nov 2019 21:31:19 +0000 Subject: [PATCH] If a theme isn't set in config.json then set it to default --- epicyon.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/epicyon.py b/epicyon.py index f894847d..49bdcd36 100644 --- a/epicyon.py +++ b/epicyon.py @@ -355,6 +355,11 @@ if not os.path.isdir(baseDir+'/cache/announce'): print('Creating announce cache') os.mkdir(baseDir+'/cache/announce') +# set the theme in config.json +themeName=getConfigParam(baseDir,'theme') +if not themeName: + setConfigParam(baseDir,'theme','default') + if args.domain: domain=args.domain setConfigParam(baseDir,'domain',domain)