Update pypi_search.py

Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
Yasir Aris M 2024-06-23 18:05:07 +07:00 committed by GitHub
parent 335b44707d
commit d96fe05686
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -150,7 +150,7 @@ async def pypi_getdata(_, callback_query: CallbackQuery):
msg += f"<b>Keywords:</b> {res['info'].get('keywords', 'Unknown')}\n" msg += f"<b>Keywords:</b> {res['info'].get('keywords', 'Unknown')}\n"
try: try:
await callback_query.message.edit_msg(msg, reply_markup=keyboard) await callback_query.message.edit_msg(msg, reply_markup=keyboard)
except MessageToolong: except MessageTooLong:
url = await post_to_telegraph(False, f"{pkgname}-detail", msg) url = await post_to_telegraph(False, f"{pkgname}-detail", msg)
await callback_query.message.edit_msg(f"Result is too long:\n{url}") await callback_query.message.edit_msg(f"Result is too long:\n{url}")
except Exception as err: except Exception as err: