Fix dialog for cancelled TX on Trezor

This commit is contained in:
Michael Wozniak 2014-08-02 23:41:27 -04:00
parent e9e8b7e960
commit ef6ccf2bcd
1 changed files with 6 additions and 2 deletions

View File

@ -175,8 +175,12 @@ class TrezorWallet(NewWallet):
inputs = self.tx_inputs(tx)
outputs = self.tx_outputs(tx)
signed_tx = self.get_client().sign_tx('Bitcoin', inputs, outputs)[1]
gl_emitter.emit(SIGNAL('trezor_done'))
try:
signed_tx = self.get_client().sign_tx('Bitcoin', inputs, outputs)[1]
except Exception, e:
raise e
finally:
gl_emitter.emit(SIGNAL('trezor_done'))
values = [i['value'] for i in tx.inputs]
raw = signed_tx.encode('hex')
tx.update(raw)