[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 4776f2e3c1d2929ce61110c6a6d10d73c827c6fa
Author: juga0 <juga at riseup.net>
Date: Wed Jul 4 08:42:22 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 faa73cf..caca3eb 100644
--- a/sbws/lib/circuitbuilder.py
+++ b/sbws/lib/circuitbuilder.py
@@ -61,7 +61,7 @@ class CircuitBuilder:
c.get_circuit(circ_id, default=None)
try:
c.close_circuit(circ_id)
- except InvalidArguments:
+ except (InvalidArguments, InvalidRequest):
pass
self.built_circuits.discard(circ_id)
except (ControllerError, ValueError) as e:
More information about the tor-commits
mailing list