mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
Fix unpack error
This commit is contained in:
parent
7bda0ebd70
commit
b45f97040c
3 changed files with 3 additions and 3 deletions
|
|
@ -237,7 +237,7 @@ async def inline_menu(self, inline_query: InlineQuery):
|
|||
except:
|
||||
snippet = "-"
|
||||
message_text = f"<a href='{link}'>{html.escape(title)}</a>\n"
|
||||
message_text += f"Deskription: {html.escape(snippet)}\nGoogleSearch by @{self.me.username}"
|
||||
message_text += f"Deskription: {html.escape(snippet)}\n\nGoogleSearch by @{self.me.username}"
|
||||
data.append(
|
||||
InlineQueryResultArticle(
|
||||
title=f"{title}",
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@ async def gsearch(_, message):
|
|||
exc = traceback.format_exc()
|
||||
return await msg.edit(exc)
|
||||
await msg.edit(
|
||||
text=f"<b>Ada {total} Hasil Pencarian dari {query}:</b>\n{res}<b>Scraped by @{BOT_USERNAME}</b>",
|
||||
text=f"<b>Ada {total} Hasil Pencarian dari {query}:</b>\n{res}<b>GoogleSearch by @{BOT_USERNAME}</b>",
|
||||
disable_web_page_preview=True,
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -339,7 +339,7 @@ async def getDataLendrive(msg, kueri, CurrentPage, user, strings):
|
|||
)
|
||||
except Exception as err:
|
||||
await msg.edit_msg(strings("err_getweb").format(err=err))
|
||||
return None, None
|
||||
return None, 0, None
|
||||
res = BeautifulSoup(data, "lxml")
|
||||
lenddata = []
|
||||
for o in res.find_all(class_="bsx"):
|
||||
|
|
|
|||
Loading…
Reference in a new issue