mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Update pid_search.py
This commit is contained in:
parent
02743d5955
commit
a4bc04c958
@ -68,6 +68,8 @@ async def _g(event: MessageEvent, state: T_State, pid: str = Arg("pid")):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
await pid_search.finish(f"发生了一些错误..{type(e)}:{e}")
|
await pid_search.finish(f"发生了一些错误..{type(e)}:{e}")
|
||||||
else:
|
else:
|
||||||
|
if data.get("error"):
|
||||||
|
await pid_search.finish(data["error"]["user_message"], at_sender=True)
|
||||||
data = data["illust"]
|
data = data["illust"]
|
||||||
if not data["width"] and not data["height"]:
|
if not data["width"] and not data["height"]:
|
||||||
await pid_search.finish(f"没有搜索到 PID:{pid} 的图片", at_sender=True)
|
await pid_search.finish(f"没有搜索到 PID:{pid} 的图片", at_sender=True)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user