[sbws/master] Replace Exception by the possible exceptions

11 Jul
2018
11 Jul
'18
3:05 p.m.
commit a398aaffedaa4270aa16a4e25cbba71c910cb7fa Author: juga0 <juga@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):
2531
Age (days ago)
2531
Last active (days ago)
0 comments
1 participants
participants (1)
-
pastly@torproject.org