Fix handling of failed transaction broadcast

This commit is contained in:
Neil Booth 2017-09-08 10:53:48 +09:00
parent f4cc1e2926
commit 06693c5880

View File

@ -377,7 +377,7 @@ class ElectrumX(SessionBase):
try:
return await self.transaction_broadcast(raw_tx)
except RPCError as e:
message, = e.args
message = e.message
if 'non-mandatory-script-verify-flag' in message:
message = (
'Your client produced a transaction that is not accepted '