Fix if None result

This commit is contained in:
yasir 2023-01-12 11:34:26 +07:00
parent 974bc58f0b
commit 5c26d63ba7

View file

@ -228,7 +228,7 @@ async def getDataSavefilm21(msg, kueri, CurrentPage):
data = await http.get(f'https://185.99.135.215/?s={kueri}', headers=headers)
text = BeautifulSoup(data.text, "lxml")
entry = text.find_all(class_="entry-header")
if "Nothing Found" in entry[0].text:
if "Tidak Ditemukan" in entry[0].text:
if not kueri:
await msg.edit("404 Not FOUND!")
return None, None