Bläddra i källkod

Count as error only for 4xx and 5xx http status codes

pull/2407/head
Dmytro Khmelenko 2 år sedan
committed by GitHub
förälder
incheckning
eb86183362
Ingen känd nyckel hittad för denna signaturen i databasen GPG-nyckel ID: 4AEE18F83AFDEB23
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      build/validate_links.py

+ 1
- 1
build/validate_links.py Visa fil

@@ -57,7 +57,7 @@ def validate_links(links):
})
code = int(resp[0]['status'])
# Checking status code errors
if (code >= 300):
if (code >= 400):
hasError = True
print(f"ERR:CLT:{code} : {link}")
except TimeoutError:


Laddar…
Avbryt
Spara