From 7364455d1f467657919143c642c88d90771d41b0 Mon Sep 17 00:00:00 2001 From: YuLun Shih Date: Wed, 4 May 2016 22:14:04 +0800 Subject: [PATCH] Fix 'set' object does not support indexing --- searx/preferences.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: