Add exception for no daemon connection
This commit is contained in:
parent
2aa45f655d
commit
e058155124
|
@ -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 New Issue