Skip to content

Commit

Permalink
Fix dialog for cancelled TX on Trezor
Browse files Browse the repository at this point in the history
  • Loading branch information
wozz committed Aug 3, 2014
1 parent e9e8b7e commit ef6ccf2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plugins/trezor.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,12 @@ def sign_transaction(self, tx, keypairs, password):

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)
Expand Down

0 comments on commit ef6ccf2

Please sign in to comment.