From 3fa70ba8b558a68ef3951fde1ac1a6529ee43568 Mon Sep 17 00:00:00 2001 From: yasir Date: Sun, 15 Jan 2023 19:54:48 +0700 Subject: [PATCH] Tes --- misskaty/plugins/web_scraper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misskaty/plugins/web_scraper.py b/misskaty/plugins/web_scraper.py index c1e668cd..5a1ef1f9 100644 --- a/misskaty/plugins/web_scraper.py +++ b/misskaty/plugins/web_scraper.py @@ -391,10 +391,10 @@ async def getDataGomov(msg, kueri, CurrentPage, user): if entry[0].text.strip() == "Nothing Found": if not kueri: await editPesan(msg, "Sorry, i could not find anything.") - return None, None + return None, 0, None else: await editPesan(msg, f"Sorry, i could not find query: {kueri}") - return None, None + return None, 0, None data = [] for i in entry: genre = i.find(class_="gmr-movie-on").text @@ -420,7 +420,7 @@ async def getDataGomov(msg, kueri, CurrentPage, user): return gomovResult, PageLen, extractbtn except (IndexError, KeyError): await editPesan(msg, "Sorry could not find any matching results!") - return None, None + return None, 0, None # Terbit21 CMD @app.on_message(filters.command(['terbit21'], COMMAND_HANDLER))