Ignoring None that sneaked in here somehow

This commit is contained in:
Casey 2024-11-15 12:55:14 +03:00
parent ae101ec1c3
commit 17f7a71f03
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ async def on_check(message: Message):
entity.url = "https://" + entity.url entity.url = "https://" + entity.url
urls.append(entity.url) urls.append(entity.url)
for url in urls: for url in urls:
if not url:
continue
async with AsyncClient( async with AsyncClient(
headers={"User-Agent": get_random_useragent()} headers={"User-Agent": get_random_useragent()}
) as client: ) as client: