From ae101ec1c3a30b59fa4467514e27e0c4c78088a7 Mon Sep 17 00:00:00 2001 From: hkc Date: Fri, 15 Nov 2024 12:53:18 +0300 Subject: [PATCH] /shrug --- nfuck/link_verifier.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nfuck/link_verifier.py b/nfuck/link_verifier.py index 7c8e74e..9588bb6 100644 --- a/nfuck/link_verifier.py +++ b/nfuck/link_verifier.py @@ -61,6 +61,7 @@ def get_random_useragent() -> str: async def verify_link(url: str) -> float: + if not url: return 0 total_score = 0 logger.info("Verifying link %s", url) if not url.startswith("http"):