Selaa lähdekoodia

[enh] show traceback of search errors

Adam Tauber 8 vuotta sitten
vanhempi
commit
94196c4b6c
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2
    1
      searx/webapp.py

+ 2
- 1
searx/webapp.py Näytä tiedosto

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
         )