diff options
author | Adam Tauber <asciimoo@gmail.com> | 2015-01-09 04:30:55 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2015-01-09 04:30:55 +0100 |
commit | 23b4a53248527a1228af13a7a4f7f380a08d1c09 (patch) | |
tree | 7a2dda8d518aa5202baffaf3dd4b2ed8f419db8f /searx/search.py | |
parent | d6b1ff08ad2ad3af8ef50c3611a18c633a78249e (diff) | |
download | searxng-23b4a53248527a1228af13a7a4f7f380a08d1c09.tar.gz searxng-23b4a53248527a1228af13a7a4f7f380a08d1c09.zip |
[enh] engine exception traceback
Diffstat (limited to 'searx/search.py')
-rw-r--r-- | searx/search.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/searx/search.py b/searx/search.py index a31d8eace..f58b6167c 100644 --- a/searx/search.py +++ b/searx/search.py @@ -40,13 +40,12 @@ number_of_searches = 0 def search_request_wrapper(fn, url, engine_name, **kwargs): try: return fn(url, **kwargs) - except Exception, e: + except: # increase errors stats engines[engine_name].stats['errors'] += 1 # print engine name and specific error message - logger.warning('engine crash: {0}\n\t{1}'.format( - engine_name, str(e))) + logger.exception('engine crash: {0}'.format(engine_name)) return |