[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/master] Replace Exception by the possible exceptions
commit 4776f2e3c1d2929ce61110c6a6d10d73c827c6fa
Author: juga0 <juga@xxxxxxxxxx>
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:
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits