[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/master] Replace Exception by the possible exceptions
commit 9ed1fbb9426ceb707a13c6d7a5093ec6a02660fc
Author: juga0 <juga@xxxxxxxxxx>
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)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits