[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/master] Replace Exception by the possible exceptions
commit 0bb09a896bb4fc7a2535cf08833388ea1444e3bb
Author: juga0 <juga@xxxxxxxxxx>
Date: Wed Jul 4 08:58:59 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 85fd7e6..32c9b8c 100644
--- a/sbws/util/stem.py
+++ b/sbws/util/stem.py
@@ -245,7 +245,7 @@ def circuit_str(controller, circ_id):
log.warning('Circuit %s no longer seems to exist so can\'t return '
'a valid circuit string for it: %s', circ_id, e)
return None
- except Exception as e:
+ except ControllerError as e:
log.exception("Exception trying to get circuit string %s", e)
return None
return '[' +\
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits