From 6c25df764f993467b176560f52c29ec03b788202 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 15 Nov 2020 18:17:37 +0000 Subject: [PATCH] Use default theme for icons --- daemon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon.py b/daemon.py index 3a7fb640b..ccd32134a 100644 --- a/daemon.py +++ b/daemon.py @@ -4839,9 +4839,9 @@ class PubServer(BaseHTTPRequestHandler): if path.endswith('.png'): mediaStr = path.split('/icons/')[1] if '/' not in mediaStr: - self._404() - return - theme = mediaStr.split('/')[0] + theme = 'default' + else: + theme = mediaStr.split('/')[0] iconFilename = mediaStr.split('/')[1] mediaFilename = \ baseDir + '/theme/' + theme + '/icons/' + iconFilename