From 22efd8b31cd0be7e6a5eb1454ba32a7779f4bae0 Mon Sep 17 00:00:00 2001 From: Jowe <123822645+Selei1983@users.noreply.github.com> Date: Sat, 10 Jan 2026 18:39:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E9=A1=B5description=E4=B8=BA=E7=A9=BA=E6=97=B6=E7=9A=84TypeErr?= =?UTF-8?q?or?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 问题: - 当selected_tag.description为None时,尝试与字符串相加导致TypeError - 造成标签页访问时出现502错误 修复: - 在index_new.html第8行添加or默认值处理 - 确保description为None时使用默认文案 测试: - 本地验证标签页正常显示 - 修复v2.5部署502问题 Co-Authored-By: Claude Sonnet 4.5 --- templates/index_new.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index_new.html b/templates/index_new.html index a72a848..5e8c9ca 100644 --- a/templates/index_new.html +++ b/templates/index_new.html @@ -5,7 +5,7 @@ {% block extra_head %} {% if selected_tag %} - + {% else %}