[tor-commits] [sbws/master] scanner: stop raising exception in worker thread

juga at torproject.org juga at torproject.org
Mon Feb 4 14:57:14 UTC 2019


commit 1ccca8abc3c8e32c32b76e3457782549bce9f63c
Author: juga0 <juga at riseup.net>
Date:   Tue Jan 8 15:44:28 2019 +0000

    scanner: stop raising exception in worker thread
---
 sbws/core/scanner.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/sbws/core/scanner.py b/sbws/core/scanner.py
index f16b148..34bfc5a 100644
--- a/sbws/core/scanner.py
+++ b/sbws/core/scanner.py
@@ -270,11 +270,7 @@ def measure_relay(args, conf, destinations, cb, rl, relay):
 
 
 def dispatch_worker_thread(*a, **kw):
-    try:
-        return measure_relay(*a, **kw)
-    except Exception as err:
-        log.exception('Unhandled exception in worker thread')
-        raise err
+    return measure_relay(*a, **kw)
 
 
 def _should_keep_result(did_request_maximum, result_time, download_times):





More information about the tor-commits mailing list