[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [sbws/master] Replace Exception by the possible exceptions



commit c20f90acd6c7a10888b3dc4d48045d436ad957d8
Author: juga0 <juga@xxxxxxxxxx>
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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits