logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: 9247b1e777f4b051136c1ebdd89d84725eb77c9a
parent: e9f56fe3eec3baed3f845677a38405f29ac6cd53
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Fri,  6 May 2016 20:12:12 +0200

Merge pull request #555 from imZack/master

Fix 'set' object does not support indexing

Diffstat:

searx/preferences.py | 2+-
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: