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