mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[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:
parent
d1208d7d19
commit
ccbaa926ce
@ -167,7 +167,7 @@ class Economy:
|
|||||||
try:
|
try:
|
||||||
await bank.transfer_credits(from_, to, amount)
|
await bank.transfer_credits(from_, to, amount)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
await ctx.send(str(e))
|
return await ctx.send(str(e))
|
||||||
|
|
||||||
await ctx.send(
|
await ctx.send(
|
||||||
_("{} transferred {} {} to {}").format(
|
_("{} transferred {} {} to {}").format(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user