Skip to content

Commit 4f29ec5

Browse files
committed
Fix dead image domain handling + BUILD
1 parent 142f333 commit 4f29ec5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,10 +1006,10 @@ async def update_game():
10061006
if changed_host:
10071007
continue
10081008
if not isinstance(exc.os_error, socket.gaierror):
1009-
raise # Not a dead link
1009+
raise # Not a dead host
10101010
if is_f95zone_url(image_url):
10111011
raise # Not a foreign host, raise normal connection error message
1012-
if check_host(f95_domain) and not check_host(get_url_domain(image_url)):
1012+
if (await check_host(f95_domain)) and not (await check_host(get_url_domain(image_url))):
10131013
# Link is actually dead
10141014
thread["image_url"] = "dead"
10151015
res = b""

0 commit comments

Comments
 (0)