[sbws/master] Replace Exception by the possible exceptions

11 Jul
2018
11 Jul
'18
3:05 p.m.
commit c20f90acd6c7a10888b3dc4d48045d436ad957d8 Author: juga0 <juga@riseup.net> Date: Wed Jul 4 08:52:55 2018 +0000 Replace Exception by the possible exceptions --- sbws/lib/relaylist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbws/lib/relaylist.py b/sbws/lib/relaylist.py index f674b62..f177a96 100644 --- a/sbws/lib/relaylist.py +++ b/sbws/lib/relaylist.py @@ -198,7 +198,7 @@ class RelayList: try: relays = [Relay(ns.fingerprint, c, ns=ns) for ns in c.get_network_statuses()] - except Exception as e: + except ControllerError as e: log.exception("Exception trying to init relays %s", e) return [] return relays
2530
Age (days ago)
2530
Last active (days ago)
0 comments
1 participants
participants (1)
-
pastly@torproject.org