From 840580334fac8320d30fe7bb0883cfe5df101d57 Mon Sep 17 00:00:00 2001 From: StarHeartHunt Date: Tue, 6 Jul 2021 22:08:38 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8A=20optimize=20log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/nonebot-adapter-feishu/nonebot/adapters/feishu/bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/bot.py b/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/bot.py index a8dbc6cf..466d4978 100644 --- a/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/bot.py +++ b/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/bot.py @@ -241,7 +241,8 @@ class Bot(BaseBot): result = response.json() return _handle_api_result(result) raise NetworkError(f"HTTP request received unexpected " - f"status code: {response.status_code}") + f"status code: {response.status_code}" + f"response body: {response.text}") except httpx.InvalidURL: raise NetworkError("API root url invalid") except httpx.HTTPError: