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 NotImplementedError
pull/20/head
justcool393 2022-11-18 07:06:44 -06:00
parent da01be264b
commit d88df43452
1 changed files with 3 additions and 3 deletions

View File

@ -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