Fix handling of failed transaction broadcast
This commit is contained in:
parent
f4cc1e2926
commit
06693c5880
@ -377,7 +377,7 @@ class ElectrumX(SessionBase):
|
|||||||
try:
|
try:
|
||||||
return await self.transaction_broadcast(raw_tx)
|
return await self.transaction_broadcast(raw_tx)
|
||||||
except RPCError as e:
|
except RPCError as e:
|
||||||
message, = e.args
|
message = e.message
|
||||||
if 'non-mandatory-script-verify-flag' in message:
|
if 'non-mandatory-script-verify-flag' in message:
|
||||||
message = (
|
message = (
|
||||||
'Your client produced a transaction that is not accepted '
|
'Your client produced a transaction that is not accepted '
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user