don't throw when using charge_account
logically, charge_account i don't think can even get see a path ...but charge_account() returns a bool based on if the account was charged. pay_account raises a TypeError now instead of a NotImplementedErrorpull/20/head
parent
da01be264b
commit
d88df43452
|
@ -146,10 +146,10 @@ class LoggedOutUser():
|
|||
return False
|
||||
|
||||
def pay_account(self, currency, amount) -> NoReturn:
|
||||
raise NotImplementedError()
|
||||
raise TypeError("Can't pay a logged out user!")
|
||||
|
||||
def charge_account(self, currency, amount, **kwargs) -> NoReturn:
|
||||
raise NotImplementedError()
|
||||
def charge_account(self, currency, amount, **kwargs) -> bool:
|
||||
return False
|
||||
|
||||
@property
|
||||
@lazy
|
||||
|
|
Loading…
Reference in New Issue