Update webui.py

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
This commit is contained in:
DrSmoothl
2025-03-18 20:47:58 +08:00
committed by GitHub
parent 79e6aa358a
commit 933ab824f6

View File

@@ -453,7 +453,7 @@ with gr.Blocks(title="MaimBot配置文件编辑") as app:
"""
)
gr.Markdown(
value="## 全球在线MaiMBot数量: " + str(online_maimbot_data['online_clients'])
value="## 全球在线MaiMBot数量: " + str((online_maimbot_data or {}).get('online_clients', 0))
)
gr.Markdown(