print trezor error message
This commit is contained in:
parent
9dfe8ff847
commit
ed1001bf8b
|
@ -101,11 +101,12 @@ class Plugin(BasePlugin):
|
||||||
d = HidTransport.enumerate()[0]
|
d = HidTransport.enumerate()[0]
|
||||||
self.transport = HidTransport(d)
|
self.transport = HidTransport(d)
|
||||||
except:
|
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.')
|
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 = QtGuiTrezorClient(self.transport)
|
||||||
self.client.handler = self.handler
|
self.client.handler = self.handler
|
||||||
self.client.set_tx_api(self)
|
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
|
self.client.bad = False
|
||||||
if not self.atleast_version(1, 2, 1):
|
if not self.atleast_version(1, 2, 1):
|
||||||
give_error('Outdated Trezor firmware. Please update the firmware from https://www.mytrezor.com')
|
give_error('Outdated Trezor firmware. Please update the firmware from https://www.mytrezor.com')
|
||||||
|
|
Loading…
Reference in New Issue