correct collage exception
This commit is contained in:
parent
0664529c70
commit
0d7271eee4
1 changed files with 3 additions and 2 deletions
|
|
@ -20,8 +20,9 @@ async def send_collage(bot: bot.Bot, ctx: nerimity.Context, entity: str, size: s
|
||||||
await ctx.send(u.error_msg("Maximum size allowed is 5x5."))
|
await ctx.send(u.error_msg("Maximum size allowed is 5x5."))
|
||||||
return
|
return
|
||||||
|
|
||||||
except ValueError:
|
except Exception:
|
||||||
await ctx.send(u.error_msg(f"Please provide a valid size.\nie `/chart{entity} 5x5`"))
|
await ctx.send(u.error_msg(f"Please provide a valid size.\nie `/chart{entity} 5x5`"))
|
||||||
|
return
|
||||||
|
|
||||||
if not username:
|
if not username:
|
||||||
try: username = await bot.get_lastfm(ctx.author.id)
|
try: username = await bot.get_lastfm(ctx.author.id)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue