commit 026330bcfc2b7ab256d7aeef6bf249a05d9f113c Author: juga0 juga@riseup.net Date: Wed Jul 4 08:57:48 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 bbd4e7a..85fd7e6 100644 --- a/sbws/util/stem.py +++ b/sbws/util/stem.py @@ -211,7 +211,7 @@ def get_socks_info(controller): try: socks_ports = controller.get_listeners(Listener.SOCKS) return socks_ports[0] - except Exception as e: + except ControllerError as e: log.exception("Exception trying to get socks info: %e.", e) exit(1)
tor-commits@lists.torproject.org