summaryrefslogtreecommitdiff
path: root/searx/preferences.py
diff options
context:
space:
mode:
authorYuLun Shih <shih@yulun.me>2016-05-04 22:14:04 +0800
committerYuLun Shih <shih@yulun.me>2016-05-04 22:14:04 +0800
commit7364455d1f467657919143c642c88d90771d41b0 (patch)
treea14594a3926c88e4e1c0bb43cc61d17abab50137 /searx/preferences.py
parente9f56fe3eec3baed3f845677a38405f29ac6cd53 (diff)
downloadsearxng-7364455d1f467657919143c642c88d90771d41b0.tar.gz
searxng-7364455d1f467657919143c642c88d90771d41b0.zip
Fix 'set' object does not support indexing
Diffstat (limited to 'searx/preferences.py')
-rw-r--r--searx/preferences.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/preferences.py b/searx/preferences.py
index ad9e67335..a87cd5029 100644
--- 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: