reorder indexnow parameter checks
This commit is contained in:
parent
5b64a65de2
commit
84ca9284d3
6
indexnow
6
indexnow
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user