mirror of
https://git.wownero.com/lza_menace/wownero-python.git
synced 2024-08-15 03:25:25 +00:00
Add exception for watch-only wallets trying to perform a spend op
This commit is contained in:
parent
8f888d2aca
commit
eb88f7cd6f
2 changed files with 4 additions and 0 deletions
|
@ -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 a new issue