add catch-all exception to fm command
This commit is contained in:
parent
631ceb64ee
commit
8f8eb83b43
1 changed files with 3 additions and 0 deletions
3
main.py
3
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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue