From 11a2ead52a2ac53f6923cc20c37ebdf163d6696e Mon Sep 17 00:00:00 2001 From: AuroraWright Date: Sat, 20 Jan 2024 19:27:12 +0100 Subject: [PATCH] Lowercase some strings after parsing the config --- owocr/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owocr/run.py b/owocr/run.py index 4e30c84..0cb3e80 100644 --- a/owocr/run.py +++ b/owocr/run.py @@ -194,7 +194,7 @@ def run(read_from='clipboard', if len(res) != 0: try: for config_engine in config['general']['engines'].split(','): - config_engines.append(config_engine.strip()) + config_engines.append(config_engine.strip().lower()) except KeyError: pass @@ -219,7 +219,7 @@ def run(read_from='clipboard', pass try: - if config['general']['notifications'].strip() == 'True': + if config['general']['notifications'].strip().lower() == 'true': notifier = DesktopNotifier() except KeyError: pass