mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-16 03:55:26 +00:00
🎨 Improve the error message when account_id does not exist
This commit is contained in:
parent
dc6c7e313c
commit
3aa104c073
@ -248,6 +248,11 @@ class AccountCookiesPlugin(Plugin.Conversation):
|
||||
logger.warning("用户 %s[%s] 获取账号信息发生错误 [%s]%s", user.full_name, user.id, exc.ret_code, exc.original)
|
||||
await message.reply_text("Stoken 无效,请重新绑定。", reply_markup=ReplyKeyboardRemove())
|
||||
return ConversationHandler.END
|
||||
except ValueError as e:
|
||||
if "account_id" in str(e):
|
||||
await message.reply_text("account_id 未找到,请检查输入是否有误。")
|
||||
return ConversationHandler.END
|
||||
raise e
|
||||
except UnicodeEncodeError:
|
||||
await message.reply_text("Stoken 非法,请重新绑定。", reply_markup=ReplyKeyboardRemove())
|
||||
return ConversationHandler.END
|
||||
|
Loading…
Reference in New Issue
Block a user