Add exception for watch-only wallets trying to perform a spend op

This commit is contained in:
Michał Sałaban 2019-10-08 10:22:02 +02:00
parent 8f888d2aca
commit eb88f7cd6f
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -50,3 +50,6 @@ class AccountIndexOutOfBound(AccountException):
class AddressIndexOutOfBound(AccountException):
pass
class WalletIsWatchOnly(MoneroException):
pass