From c73ea700e1718d8694cf4e5b0dd401a2992a196b Mon Sep 17 00:00:00 2001 From: Darin Stanchfield Date: Sun, 30 Aug 2015 09:36:13 -0700 Subject: [PATCH] cleanup on error handling when a transaction is cancelled --- plugins/keepkey.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/keepkey.py b/plugins/keepkey.py index c6a408cc8..d0849c01c 100644 --- a/plugins/keepkey.py +++ b/plugins/keepkey.py @@ -238,9 +238,10 @@ class Plugin(BasePlugin): try: signed_tx = client.sign_tx('Bitcoin', inputs, outputs)[1] except Exception, e: - give_error(e) - finally: self.handler.stop() + give_error(e) + + self.handler.stop() raw = signed_tx.encode('hex') tx.update_signatures(raw)