From d0dd554e3868c1fada556e44a94715d6a9e10f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sa=C5=82aban?= Date: Thu, 18 Oct 2018 23:20:27 +0200 Subject: [PATCH] Add new RPC error code pending as PR --- monero/backends/jsonrpc.py | 5 +++-- monero/exceptions.py | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/monero/backends/jsonrpc.py b/monero/backends/jsonrpc.py index d7c5efd..b0df597 100644 --- a/monero/backends/jsonrpc.py +++ b/monero/backends/jsonrpc.py @@ -361,7 +361,8 @@ _err2exc = { -16: exceptions.TransactionNotPossible, -17: exceptions.NotEnoughMoney, -20: exceptions.AmountIsZero, - -37: exceptions.NotEnoughUnlockedMoney, # PR pending: https://github.com/monero-project/monero/pull/3197 - -38: exceptions.NoDaemonConnection, # PR 3197 + -37: exceptions.NotEnoughUnlockedMoney, + -38: exceptions.NoDaemonConnection, + -43: exceptions.WalletIsNotDeterministic, # https://github.com/monero-project/monero/pull/4653 -32601: MethodNotFound, } diff --git a/monero/exceptions.py b/monero/exceptions.py index ef2bca3..389fbb5 100644 --- a/monero/exceptions.py +++ b/monero/exceptions.py @@ -38,3 +38,6 @@ class TransactionNotFound(AccountException): class SignatureCheckFailed(MoneroException): pass + +class WalletIsNotDeterministic(MoneroException): + pass