RPCError has msg member, not message
This commit is contained in:
parent
f723455992
commit
9dd5541f82
@ -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.message
|
message = e.msg
|
||||||
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 '
|
||||||
@ -523,7 +523,7 @@ class DashElectrumX(ElectrumX):
|
|||||||
try:
|
try:
|
||||||
return await self.masternode_announce_broadcast(signmnb)
|
return await self.masternode_announce_broadcast(signmnb)
|
||||||
except RPCError as e:
|
except RPCError as e:
|
||||||
return e.message
|
return e.msg
|
||||||
|
|
||||||
async def masternode_subscribe(self, vin):
|
async def masternode_subscribe(self, vin):
|
||||||
'''Returns the status of masternode.'''
|
'''Returns the status of masternode.'''
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user