reorder indexnow parameter checks

This commit is contained in:
Daniel Micay 2024-05-24 17:41:53 -04:00
parent 5b64a65de2
commit 84ca9284d3

View File

@ -10,11 +10,11 @@ if len(sys.argv) > 1:
else: else:
urls = sys.stdin.read().splitlines() urls = sys.stdin.read().splitlines()
for url in urls: if not urls:
if not validators.url(url):
sys.exit(2) sys.exit(2)
if not urls: for url in urls:
if not validators.url(url):
sys.exit(3) sys.exit(3)
host = "grapheneos.org" host = "grapheneos.org"