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

pastly at torproject.org pastly at torproject.org
Wed Jul 11 15:05:40 UTC 2018


commit 58934941b20cdcc583e17bdafd10265d7c2a6927
Author: juga0 <juga at riseup.net>
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",





More information about the tor-commits mailing list