[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/master] Replace Exception by the possible exceptions
commit a398aaffedaa4270aa16a4e25cbba71c910cb7fa
Author: juga0 <juga@xxxxxxxxxx>
Date: Wed Jul 4 08:04:14 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 d0c903c..f674b62 100644
--- a/sbws/lib/relaylist.py
+++ b/sbws/lib/relaylist.py
@@ -39,7 +39,7 @@ class Relay:
else:
try:
self._desc = cont.get_server_descriptor(fp, default=None)
- except Exception as e:
+ except (DescriptorUnavailable, ControllerError) as e:
log.exception("Exception trying to get desc %s", e)
def _from_desc(self, attr):
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits