Browse Source

[enh] show traceback of search errors

Adam Tauber 8 years ago
parent
commit
94196c4b6c
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      searx/webapp.py

+ 2
- 1
searx/webapp.py View File

410
         # search = Search(search_query) #  without plugins
410
         # search = Search(search_query) #  without plugins
411
         search = SearchWithPlugins(search_query, request)
411
         search = SearchWithPlugins(search_query, request)
412
         result_container = search.search()
412
         result_container = search.search()
413
-    except:
413
+    except Exception:
414
+        logger.exception('search error')
414
         return render(
415
         return render(
415
             'index.html',
416
             'index.html',
416
         )
417
         )