[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/master] Replace Exception by the possible exceptions
commit d1aebaf48960fe7e85299213ff49fc02b71521ae
Author: juga0 <juga@xxxxxxxxxx>
Date: Wed Jul 4 08:54:53 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 b62de82..bbd4e7a 100644
--- a/sbws/util/stem.py
+++ b/sbws/util/stem.py
@@ -47,7 +47,7 @@ def add_event_listener(controller, func, event):
def remove_event_listener(controller, func):
try:
controller.remove_event_listener(func)
- except Exception as e:
+ except ProtocolError as e:
log.exception("Exception trying to remove event %s", e)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits