cleanup on error handling when a transaction is cancelled

This commit is contained in:
Darin Stanchfield 2015-08-30 09:36:13 -07:00
parent 0d4805f6fd
commit c73ea700e1

View file

@ -238,8 +238,9 @@ class Plugin(BasePlugin):
try: try:
signed_tx = client.sign_tx('Bitcoin', inputs, outputs)[1] signed_tx = client.sign_tx('Bitcoin', inputs, outputs)[1]
except Exception, e: except Exception, e:
self.handler.stop()
give_error(e) give_error(e)
finally:
self.handler.stop() self.handler.stop()
raw = signed_tx.encode('hex') raw = signed_tx.encode('hex')