correct collage exception

This commit is contained in:
yuki 2025-10-09 00:25:02 -03:00
parent 0664529c70
commit 0d7271eee4

View file

@ -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: 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.")) 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)