From 8f8eb83b43f54bb447bbac9f53d056efd22a6656 Mon Sep 17 00:00:00 2001 From: yuki Date: Mon, 6 Oct 2025 23:37:48 -0300 Subject: [PATCH] add catch-all exception to fm command --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 36552ac..3a15fec 100644 --- a/main.py +++ b/main.py @@ -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):