Explorar el Código

[enh] show traceback of search errors

Adam Tauber hace 8 años
padre
commit
94196c4b6c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      searx/webapp.py

+ 2
- 1
searx/webapp.py Ver fichero

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