Lowercase some strings after parsing the config
This commit is contained in:
@@ -194,7 +194,7 @@ def run(read_from='clipboard',
|
|||||||
if len(res) != 0:
|
if len(res) != 0:
|
||||||
try:
|
try:
|
||||||
for config_engine in config['general']['engines'].split(','):
|
for config_engine in config['general']['engines'].split(','):
|
||||||
config_engines.append(config_engine.strip())
|
config_engines.append(config_engine.strip().lower())
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -219,7 +219,7 @@ def run(read_from='clipboard',
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if config['general']['notifications'].strip() == 'True':
|
if config['general']['notifications'].strip().lower() == 'true':
|
||||||
notifier = DesktopNotifier()
|
notifier = DesktopNotifier()
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user