[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 d1aebaf48960fe7e85299213ff49fc02b71521ae
Author: juga0 <juga at riseup.net>
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)
 
 





More information about the tor-commits mailing list