Fixed some bugs

This commit is contained in:
Choco
2024-06-14 21:56:50 +08:00
parent a141d3c261
commit 2124ee075c
4 changed files with 13 additions and 14 deletions

View File

@@ -35,7 +35,8 @@ from function import (
get_lang,
settings,
get_aliases,
cooldown_check
cooldown_check,
logger
)
from datetime import datetime
@@ -504,8 +505,9 @@ class Playlists(commands.Cog, name="playlist"):
await update_user(ctx.author.id, {"$set": {f"playlist.{assign_playlist_id([data for data in user])}": data}})
await send(ctx, 'playlistCreated', name)
except:
return await send(ctx, "decodeError", ephemeral=True)
except Exception as e:
logger.error("Decode Error", exc_info=e)
raise e
async def setup(bot: commands.Bot) -> None:
await bot.add_cog(Playlists(bot))