[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 c20f90acd6c7a10888b3dc4d48045d436ad957d8
Author: juga0 <juga at 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
More information about the tor-commits
mailing list