Add exception for watch-only wallets trying to perform a spend op
This commit is contained in:
parent
8f888d2aca
commit
eb88f7cd6f
|
@ -420,6 +420,7 @@ _err2exc = {
|
|||
-16: exceptions.TransactionNotPossible,
|
||||
-17: exceptions.NotEnoughMoney,
|
||||
-20: exceptions.AmountIsZero,
|
||||
-29: exceptions.WalletIsWatchOnly,
|
||||
-37: exceptions.NotEnoughUnlockedMoney,
|
||||
-38: exceptions.NoDaemonConnection,
|
||||
-43: exceptions.WalletIsNotDeterministic, # https://github.com/monero-project/monero/pull/4653
|
||||
|
|
|
@ -50,3 +50,6 @@ class AccountIndexOutOfBound(AccountException):
|
|||
|
||||
class AddressIndexOutOfBound(AccountException):
|
||||
pass
|
||||
|
||||
class WalletIsWatchOnly(MoneroException):
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue