commit: 7364455d1f467657919143c642c88d90771d41b0
parent e9f56fe3eec3baed3f845677a38405f29ac6cd53
Author: YuLun Shih <shih@yulun.me>
Date: Wed, 4 May 2016 22:14:04 +0800
Fix 'set' object does not support indexing
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/searx/preferences.py b/searx/preferences.py
@@ -181,7 +181,7 @@ class EnginesSetting(SwitchableSetting):
return [item[len('engine_'):].replace('_', ' ').replace(' ', '__') for item in items]
def transform_values(self, values):
- if len(values) == 1 and values[0] == '':
+ if len(values) == 1 and next(iter(values)) == '':
return list()
transformed_values = []
for value in values: