mirror of
https://git.wownero.com/lza_menace/wownero-python.git
synced 2024-08-15 03:25:25 +00:00
Recognize payment id exception
This commit is contained in:
parent
66826cd0fb
commit
5b7dd90b9d
2 changed files with 4 additions and 0 deletions
|
@ -171,6 +171,7 @@ class MethodNotFound(RPCError):
|
|||
_err2exc = {
|
||||
-2: exceptions.WrongAddress,
|
||||
-4: exceptions.NotEnoughUnlockedMoney,
|
||||
-5: exceptions.WrongPaymentId,
|
||||
-20: exceptions.AmountIsZero,
|
||||
-32601: MethodNotFound,
|
||||
}
|
||||
|
|
|
@ -10,6 +10,9 @@ class AccountException(MoneroException):
|
|||
class WrongAddress(AccountException):
|
||||
pass
|
||||
|
||||
class WrongPaymentId(AccountException):
|
||||
pass
|
||||
|
||||
class NotEnoughMoney(AccountException):
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in a new issue