[sbws/master] Replace Exception by the possible exceptions

11 Jul
2018
11 Jul
'18
3:05 p.m.
commit d1aebaf48960fe7e85299213ff49fc02b71521ae Author: juga0 <juga@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)
2530
Age (days ago)
2530
Last active (days ago)
0 comments
1 participants
participants (1)
-
pastly@torproject.org