Add exception for no daemon connection

This commit is contained in:
Michał Sałaban 2018-01-29 10:14:24 +01:00
parent 2aa45f655d
commit e058155124
2 changed files with 4 additions and 0 deletions

View file

@ -315,5 +315,6 @@ _err2exc = {
-17: exceptions.NotEnoughMoney, -17: exceptions.NotEnoughMoney,
-20: exceptions.AmountIsZero, -20: exceptions.AmountIsZero,
-37: exceptions.NotEnoughUnlockedMoney, # PR pending: https://github.com/monero-project/monero/pull/3197 -37: exceptions.NotEnoughUnlockedMoney, # PR pending: https://github.com/monero-project/monero/pull/3197
-38: exceptions.NoDaemonConnection, # PR 3197
-32601: MethodNotFound, -32601: MethodNotFound,
} }

View file

@ -4,6 +4,9 @@ class MoneroException(Exception):
class BackendException(MoneroException): class BackendException(MoneroException):
pass pass
class NoDaemonConnection(BackendException):
pass
class AccountException(MoneroException): class AccountException(MoneroException):
pass pass