Skip to content

Commit

Permalink
尝试兼容lagrange
Browse files Browse the repository at this point in the history
  • Loading branch information
LambdaYH committed Feb 17, 2025
1 parent c37ca61 commit 148f183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nonebot_plugin_bottle/webui/data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def bytes_to_base64(image_bytes: bytes) -> str:

# 下载图像并转换为 Base64
async def process_image(url: str):
if not url:
if not url or (not url.startswith("http")):
return ""
image_bytes = await download_image(url)
if image_bytes is None:
Expand Down

0 comments on commit 148f183

Please sign in to comment.