[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 a398aaffedaa4270aa16a4e25cbba71c910cb7fa
Author: juga0 <juga at riseup.net>
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):
More information about the tor-commits
mailing list