[tor-commits] [sbws/master] Replace Exception by the possible exceptions

pastly at torproject.org pastly at torproject.org
Wed Jul 11 15:05:40 UTC 2018


commit 9ed1fbb9426ceb707a13c6d7a5093ec6a02660fc
Author: juga0 <juga at riseup.net>
Date:   Wed Jul 4 08:54:31 2018 +0000

    Replace Exception by the possible exceptions
---
 sbws/util/stem.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbws/util/stem.py b/sbws/util/stem.py
index e09f23c..b62de82 100644
--- a/sbws/util/stem.py
+++ b/sbws/util/stem.py
@@ -40,7 +40,7 @@ def attach_stream_to_circuit_listener(controller, circ_id):
 def add_event_listener(controller, func, event):
     try:
         controller.add_event_listener(func, event)
-    except Exception as e:
+    except ProtocolError as e:
         log.exception("Exception trying to add event listener %s", e)
 
 





More information about the tor-commits mailing list