Skip to content

Commit

Permalink
<jx3>[feat]prevent exception
Browse files Browse the repository at this point in the history
  • Loading branch information
HornCopper committed Sep 13, 2024
1 parent beb179f commit ea39d9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/jx3/recruit/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ async def recruit_v2(server: Optional[str], keyword: str = "", local: bool = Fal
if not server_:
return [PROMPT.ServerNotExist]
data = await query_recruit(server_, keyword)
if "code" not in data:
return
if data["code"] != 200:
return ["唔……未找到相关团队,请检查后重试!"]
adFlags = await get_api("https://inkar-suki.codethink.cn/filters")
Expand Down

0 comments on commit ea39d9f

Please sign in to comment.