From 580e248908b57ce200596a60f0d203546dac2de3 Mon Sep 17 00:00:00 2001 From: Xtao_dada Date: Mon, 4 May 2020 17:13:40 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=AD=20=E4=BF=AE=E5=A4=8D=20profile=20?= =?UTF-8?q?=E7=AE=80=E6=98=93=E6=8A=A5=E9=94=99=E9=94=99=E8=AF=AF=E3=80=81?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagermaid/modules/account.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pagermaid/modules/account.py b/pagermaid/modules/account.py index fd6991f..fcd5716 100644 --- a/pagermaid/modules/account.py +++ b/pagermaid/modules/account.py @@ -174,14 +174,14 @@ async def profile(context): user_object = await context.client.get_entity(user) target_user = await context.client(GetFullUserRequest(user_object.id)) except (TypeError, ValueError, OverflowError, StructError) as exception: - if str(exception).startswith("出错了呜呜呜 ~ 找不到与之对应的任何内容"): + if str(exception).startswith("Cannot find any entity corresponding to"): await context.edit("出错了呜呜呜 ~ 指定的用户不存在。") return - if str(exception).startswith("出错了呜呜呜 ~ 没有用户"): + if str(exception).startswith("No user has"): await context.edit("出错了呜呜呜 ~ 指定的道纹不存在。") return - if str(exception).startswith("出错了呜呜呜 ~ 您确定输入了东西?") or isinstance(exception, StructError): - await context.edit("出错了呜呜呜 ~ 找不到对应的 UserID 。") + if str(exception).startswith("Could not find the input entity for") or isinstance(exception, StructError): + await context.edit("出错了呜呜呜 ~ 无法通过此 UserID 找到对应的用户。") return if isinstance(exception, OverflowError): await context.edit("出错了呜呜呜 ~ 指定的 UserID 已超出长度限制,您确定输对了?")