mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 12:24:51 +00:00
Fix if None result
This commit is contained in:
parent
974bc58f0b
commit
5c26d63ba7
1 changed files with 1 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ async def getDataSavefilm21(msg, kueri, CurrentPage):
|
||||||
data = await http.get(f'https://185.99.135.215/?s={kueri}', headers=headers)
|
data = await http.get(f'https://185.99.135.215/?s={kueri}', headers=headers)
|
||||||
text = BeautifulSoup(data.text, "lxml")
|
text = BeautifulSoup(data.text, "lxml")
|
||||||
entry = text.find_all(class_="entry-header")
|
entry = text.find_all(class_="entry-header")
|
||||||
if "Nothing Found" in entry[0].text:
|
if "Tidak Ditemukan" in entry[0].text:
|
||||||
if not kueri:
|
if not kueri:
|
||||||
await msg.edit("404 Not FOUND!")
|
await msg.edit("404 Not FOUND!")
|
||||||
return None, None
|
return None, None
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue