From d522d148ef5f450975bc2dce3c7413364b0fa6ec Mon Sep 17 00:00:00 2001 From: Timothy Hobbs Date: Mon, 10 Apr 2017 09:40:27 +0200 Subject: [PATCH] Connection error is confusing (#105) Hi, I ran into this connection error: ```` > trezor-agent timothy@localhost 2017-04-10 00:22:01,818 ERROR Connection error: open failed [__main__.py:130] ```` I didn't know what was going on, whether there was a problem connecting to localhost or what. I eventually logged into trezor wallet and found that there too, my device was not recognized (probably because I did not unplug it/replug it after updating the HID settings.) Unplugging it and replugging it fixed everything. --- trezor_agent/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trezor_agent/__main__.py b/trezor_agent/__main__.py index 92c68be..eedcd61 100644 --- a/trezor_agent/__main__.py +++ b/trezor_agent/__main__.py @@ -127,7 +127,7 @@ def handle_connection_error(func): try: return func(*args, **kwargs) except IOError as e: - log.error('Connection error: %s', e) + log.error('Connection error (try unplugging and replugging your device): %s', e) return 1 return wrapper