From 5219698b076bb711673efcbfdef045a959c75805 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sun, 4 Dec 2022 14:43:46 +0100 Subject: [PATCH] Update changedetectionio/__init__.py --- changedetectionio/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/__init__.py b/changedetectionio/__init__.py index 9f30b29bc..5d3c427df 100644 --- a/changedetectionio/__init__.py +++ b/changedetectionio/__init__.py @@ -203,7 +203,7 @@ def changedetection_app(config=None, datastore_o=None): resource_class_kwargs={'datastore': datastore, 'update_q': update_q}) def getDarkModeSetting(): - return datastore.data['settings']['application']['css_dark_mode'] + return datastore.data['settings']['application'].get('css_dark_mode') # Setup cors headers to allow all domains # https://flask-cors.readthedocs.io/en/latest/