Update webui.py

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
pull/481/head
DrSmoothl 2025-03-18 20:47:58 +08:00 committed by GitHub
parent 79e6aa358a
commit 933ab824f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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(