diff --git a/efb_qq_plugin_go_cqhttp/GoCQHttp.py b/efb_qq_plugin_go_cqhttp/GoCQHttp.py index a4dc842..4616667 100644 --- a/efb_qq_plugin_go_cqhttp/GoCQHttp.py +++ b/efb_qq_plugin_go_cqhttp/GoCQHttp.py @@ -206,12 +206,18 @@ class GoCQHttp(BaseClient): chat: Chat author: ChatMember - user = self.get_user_info(qq_uid) + try: + user = self.get_user_info(qq_uid) + except: + return if context["message_type"] == "private": context["alias"] = user["remark"] chat: PrivateChat = self.chat_manager.build_efb_chat_as_private(context) else: - chat = self.chat_manager.build_efb_chat_as_group(context) + try: + chat = self.chat_manager.build_efb_chat_as_group(context) + except: + return is_discuss = False if context['message_type'] == 'group' else True chat_uid = context['discuss_id'] if is_discuss else context['group_id'] if len(all_group_list) > 0 and chat_uid not in all_group_list: