From 79dcd22ff644d124319d25e47b8f4a6c1be4493e Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Tue, 14 Jan 2020 18:53:28 +0100 Subject: [PATCH] Update bank.py (#3366) --- 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 4379199d8..03dc8b8f6 100644 --- a/redbot/core/bank.py +++ b/redbot/core/bank.py @@ -838,9 +838,9 @@ async def set_default_balance(amount: int, guild: discord.Guild = None) -> int: amount = int(amount) max_bal = await get_max_balance(guild) - if not (0 < amount <= max_bal): + if not (0 <= amount <= max_bal): raise ValueError( - "Amount must be greater than zero and less than {max}.".format( + "Amount must be greater than or equal zero and less than or equal {max}.".format( max=humanize_number(max_bal, override_locale="en_US") ) )