🐛 Fix cookie can't be deleted

This commit is contained in:
洛水居室 2022-11-30 12:02:52 +08:00
parent fb03f09b9d
commit 272f104166
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -97,7 +97,8 @@ class UserPlugin(Plugin.Conversation, BasePlugin.Conversation):
return ConversationHandler.END
else:
logger.success("用户 %s[%s] 从数据库删除账号成功", user.full_name, user.id)
if del_user_command_data.cookies:
cookies = del_user_command_data.cookies
if cookies:
try:
await self.cookies_service.del_cookies(user.id, del_user_command_data.region)
except CookiesNotFoundError: