commit 0bb09a896bb4fc7a2535cf08833388ea1444e3bb Author: juga0 juga@riseup.net 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@lists.torproject.org