Browse Source

fix little bug to allow webapp.py without client var

Thomas Pointhuber 11 years ago
parent
commit
71c6124f7b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      searx/webapp.py

+ 3 - 3
searx/webapp.py

@@ -122,7 +122,7 @@ def index():
     if not request.args and not request.form:
         return render(
             'index.html',
-            client=settings['client']
+            client=settings.get('client', None)
         )
 
     try:
@@ -130,7 +130,7 @@ def index():
     except:
         return render(
             'index.html',
-            client=settings['client']
+            client=settings.get('client', None)
         )
 
     # TODO moar refactor - do_search integration into Search class
@@ -212,7 +212,7 @@ def index():
     return render(
         'results.html',
         results=search.results,
-        client=settings['client'],
+        client=settings.get('client', None),
         q=search.request_data['q'],
         selected_categories=search.categories,
         paging=search.paging,