diff options
| author | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-03-21 11:29:10 +0100 |
|---|---|---|
| committer | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-03-21 11:29:10 +0100 |
| commit | 71c6124f7b86282f1b0d5cb45c6d9df0f71ba398 (patch) | |
| tree | 1f3bc2bc62995fd202cfd2ba175f71c2c4e1715b /searx | |
| parent | c8cf95aa56590800c4f2d39a39d0a70537e7382e (diff) | |
fix little bug to allow webapp.py without client var
Diffstat (limited to 'searx')
| -rw-r--r-- | searx/webapp.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index b60b889e5..6a6ebddb2 100644 --- a/searx/webapp.py +++ b/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, |