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

[tor-commits] [sbws/master] Replace Exception by the possible exceptions



commit af869ad0701064600c9f1d161c8cb6300bb023f3
Author: juga0 <juga@xxxxxxxxxx>
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()



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