add catch-all exception to fm command

This commit is contained in:
yuki 2025-10-06 23:37:48 -03:00
parent 631ceb64ee
commit 8f8eb83b43

View file

@ -58,6 +58,9 @@ async def fm(ctx: nerimity.Context, params: str = ""):
await ctx.send("[#e5323b]Error: User has no recent tracks or they're set to private.")
except pylast.WSError:
await ctx.send("[#e5323b]Error: User not found.")
except Exception as e:
print(e)
await ctx.send("[#e5323b]Unknown error.")
@client.listen("on_ready")
async def on_ready(params):