Pārlūkot izejas kodu

[enh] show traceback of search errors

Adam Tauber 8 gadus atpakaļ
vecāks
revīzija
94196c4b6c
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2
    1
      searx/webapp.py

+ 2
- 1
searx/webapp.py Parādīt failu

@@ -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
         )