reorder indexnow parameter checks
This commit is contained in:
parent
5b64a65de2
commit
84ca9284d3
8
indexnow
8
indexnow
@ -10,12 +10,12 @@ if len(sys.argv) > 1:
|
|||||||
else:
|
else:
|
||||||
urls = sys.stdin.read().splitlines()
|
urls = sys.stdin.read().splitlines()
|
||||||
|
|
||||||
|
if not urls:
|
||||||
|
sys.exit(2)
|
||||||
|
|
||||||
for url in urls:
|
for url in urls:
|
||||||
if not validators.url(url):
|
if not validators.url(url):
|
||||||
sys.exit(2)
|
sys.exit(3)
|
||||||
|
|
||||||
if not urls:
|
|
||||||
sys.exit(3)
|
|
||||||
|
|
||||||
host = "grapheneos.org"
|
host = "grapheneos.org"
|
||||||
api_url = "https://api.indexnow.org/indexnow"
|
api_url = "https://api.indexnow.org/indexnow"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user