mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Update pypi_search.py
Signed-off-by: Yasir Aris M <git@yasir.id>
This commit is contained in:
parent
41cfc85bc1
commit
284395d4f5
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ async def pypi_s(_, ctx: Message):
|
||||||
"Please add query after command. Ex: <code>/pypi pyrogram</code>", del_in=6
|
"Please add query after command. Ex: <code>/pypi pyrogram</code>", del_in=6
|
||||||
)
|
)
|
||||||
pesan = await ctx.reply_msg("⏳ Please wait, getting data from pypi..", quote=True)
|
pesan = await ctx.reply_msg("⏳ Please wait, getting data from pypi..", quote=True)
|
||||||
html = await fetch.get(f"https://pypi.org/pypi/{pkgname}/json")
|
html = await fetch.get(f"https://pypi.org/pypi/{kueri}/json")
|
||||||
if html.status_code != 200:
|
if html.status_code != 200:
|
||||||
return await pesan.edit_msg("Failed connect fo pypi server")
|
return await pesan.edit_msg("Failed connect fo pypi server")
|
||||||
res = html.json()
|
res = html.json()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue