mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 04:35:49 +00:00
🐛 Fix cookie can't be deleted
This commit is contained in:
parent
fb03f09b9d
commit
272f104166
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user