[tor-commits] [sbws/master] Replace Exception by the possible exceptions
    pastly at torproject.org 
    pastly at torproject.org
       
    Wed Jul 11 15:05:40 UTC 2018
    
    
  
commit 218da1c5243c4c9d95eb91f44be15a155b56e848
Author: juga0 <juga at riseup.net>
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)
    
    
More information about the tor-commits
mailing list