From f6823ea3d12135af4cd54612ad3aa840651f0034 Mon Sep 17 00:00:00 2001 From: Redjumpman Date: Tue, 24 Jul 2018 20:57:25 -0400 Subject: [PATCH] Update bank.py (#1937) --- redbot/core/bank.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redbot/core/bank.py b/redbot/core/bank.py index 996c1c0a4..db668e8ae 100644 --- a/redbot/core/bank.py +++ b/redbot/core/bank.py @@ -191,7 +191,7 @@ async def set_balance(member: discord.Member, amount: int) -> int: def _invalid_amount(amount: int) -> bool: - return amount <= 0 + return amount < 0 async def withdraw_credits(member: discord.Member, amount: int) -> int: @@ -217,7 +217,7 @@ async def withdraw_credits(member: discord.Member, amount: int) -> int: """ if _invalid_amount(amount): - raise ValueError("Invalid withdrawal amount {} <= 0".format(amount)) + raise ValueError("Invalid withdrawal amount {} < 0".format(amount)) bal = await get_balance(member) if amount > bal: