Sfoglia il codice sorgente

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

pull/2407/head
Dmytro Khmelenko 2 anni fa
committed by GitHub
parent
commit
eb86183362
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      build/validate_links.py

+ 1
- 1
build/validate_links.py Vedi File

@@ -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:


Caricamento…
Annulla
Salva