[V3 Economy] fix erroneous message when transferring with insufficient funds (#1698)

Fixed an erroneous message when transferring credits while having insufficient funds.
This commit is contained in:
Redjumpman 2018-05-23 15:45:23 -04:00 committed by palmtree5
parent d1208d7d19
commit ccbaa926ce

View File

@ -167,7 +167,7 @@ class Economy:
try:
await bank.transfer_credits(from_, to, amount)
except ValueError as e:
await ctx.send(str(e))
return await ctx.send(str(e))
await ctx.send(
_("{} transferred {} {} to {}").format(