mirror of
https://git.wownero.com/lza_menace/wownero-python.git
synced 2024-08-15 03:25:25 +00:00
Add exception for no daemon connection
This commit is contained in:
parent
2aa45f655d
commit
e058155124
2 changed files with 4 additions and 0 deletions
|
@ -315,5 +315,6 @@ _err2exc = {
|
|||
-17: exceptions.NotEnoughMoney,
|
||||
-20: exceptions.AmountIsZero,
|
||||
-37: exceptions.NotEnoughUnlockedMoney, # PR pending: https://github.com/monero-project/monero/pull/3197
|
||||
-38: exceptions.NoDaemonConnection, # PR 3197
|
||||
-32601: MethodNotFound,
|
||||
}
|
||||
|
|
|
@ -4,6 +4,9 @@ class MoneroException(Exception):
|
|||
class BackendException(MoneroException):
|
||||
pass
|
||||
|
||||
class NoDaemonConnection(BackendException):
|
||||
pass
|
||||
|
||||
class AccountException(MoneroException):
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in a new issue