[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/master] Replace Exception by the possible exceptions
commit 218da1c5243c4c9d95eb91f44be15a155b56e848
Author: juga0 <juga@xxxxxxxxxx>
Date: Wed Jul 4 08:26:14 2018 +0000
Replace Exception by the possible exceptions
---
sbws/util/stem.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbws/util/stem.py b/sbws/util/stem.py
index b4190ef..e09f23c 100644
--- a/sbws/util/stem.py
+++ b/sbws/util/stem.py
@@ -195,7 +195,7 @@ def launch_tor(conf):
try:
cont.set_conf('__DisablePredictedCircuits', '1')
cont.set_conf('__LeaveStreamsUnattached', '1')
- except Exception as e:
+ except (ControllerError, InvalidArguments, InvalidRequest) as e:
log.exception("Error trying to launch tor: %s. "
"Maybe the tor directory is being used by other "
"sbws instance?", e)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits