[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [sbws/master] Catch other possible exception



commit 58934941b20cdcc583e17bdafd10265d7c2a6927
Author: juga0 <juga@xxxxxxxxxx>
Date:   Wed Jul 4 08:51:34 2018 +0000

    Catch other possible exception
---
 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 8791656..e3b3950 100644
--- a/sbws/lib/circuitbuilder.py
+++ b/sbws/lib/circuitbuilder.py
@@ -95,7 +95,7 @@ class CircuitBuilder:
                 c.get_circuit(circ_id, default=None)
                 try:
                     c.close_circuit(circ_id)
-                except InvalidArguments:
+                except (InvalidArguments, InvalidRequest):
                     pass
             except (ControllerError, InvalidArguments) as e:
                 log.exception("Exception trying to get circuit to delete: %s",



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits