[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 af869ad0701064600c9f1d161c8cb6300bb023f3
Author: juga0 <juga at riseup.net>
Date: Wed Jul 4 08:50:29 2018 +0000
Replace Exception by the possible exceptions
---
sbws/lib/circuitbuilder.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbws/lib/circuitbuilder.py b/sbws/lib/circuitbuilder.py
index c2c9b97..8791656 100644
--- a/sbws/lib/circuitbuilder.py
+++ b/sbws/lib/circuitbuilder.py
@@ -97,7 +97,7 @@ class CircuitBuilder:
c.close_circuit(circ_id)
except InvalidArguments:
pass
- except Exception as e:
+ except (ControllerError, InvalidArguments) as e:
log.exception("Exception trying to get circuit to delete: %s",
e)
self.built_circuits.clear()
More information about the tor-commits
mailing list