print trezor error message

This commit is contained in:
ThomasV 2015-06-28 19:43:46 +02:00
parent 9dfe8ff847
commit ed1001bf8b
1 changed files with 2 additions and 1 deletions

View File

@ -101,11 +101,12 @@ class Plugin(BasePlugin):
d = HidTransport.enumerate()[0]
self.transport = HidTransport(d)
except:
import traceback
traceback.print_exc(file=sys.stdout)
give_error('Could not connect to your Trezor. Please verify the cable is connected and that no other app is using it.')
self.client = QtGuiTrezorClient(self.transport)
self.client.handler = self.handler
self.client.set_tx_api(self)
#self.client.clear_session()# TODO Doesn't work with firmware 1.1, returns proto.Failure
self.client.bad = False
if not self.atleast_version(1, 2, 1):
give_error('Outdated Trezor firmware. Please update the firmware from https://www.mytrezor.com')