debug: add full traceback to pinpoint str-int error location
This commit is contained in:
+2
-1
@@ -890,7 +890,8 @@ def start_bot():
|
||||
bot.send_message(message.chat.id, "\n".join(msg_lines), parse_mode="HTML")
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"查询失败: {e}")
|
||||
import traceback
|
||||
logger.error(f"查询失败: {e}\n{traceback.format_exc()}")
|
||||
bot.reply_to(message, f"❌ 查询失败: {e}")
|
||||
|
||||
logger.info("🤖 Bot 启动中...")
|
||||
|
||||
Reference in New Issue
Block a user