diff options
| author | Daniel Micay <daniel.micay@grapheneos.org> | 2024-05-24 17:41:53 -0400 |
|---|---|---|
| committer | Daniel Micay <daniel.micay@grapheneos.org> | 2024-05-24 17:42:10 -0400 |
| commit | 84ca9284d3130bbbec6b6a953a7b59150fc10ad4 (patch) | |
| tree | fc935e0f545c85ae85af911f38bb341f3abb090e /indexnow | |
| parent | 5b64a65de21c6ad1c6915d4299925d8e596877b6 (diff) | |
reorder indexnow parameter checks
Diffstat (limited to 'indexnow')
| -rwxr-xr-x | indexnow | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -10,12 +10,12 @@ if len(sys.argv) > 1: else: urls = sys.stdin.read().splitlines() +if not urls: + sys.exit(2) + for url in urls: if not validators.url(url): - sys.exit(2) - -if not urls: - sys.exit(3) + sys.exit(3) host = "grapheneos.org" api_url = "https://api.indexnow.org/indexnow" |
