瀏覽代碼

Mapped network problem (DNS failure, connection refused, etc)

pull/3011/head
Matheus Felipe 2 年之前
父節點
當前提交
ae7ac00586
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: AA785C523274872F
共有 1 個文件被更改,包括 8 次插入4 次删除
  1. +8
    -4
      scripts/validate/links.py

+ 8
- 4
scripts/validate/links.py 查看文件

@@ -172,14 +172,18 @@ def check_if_link_is_working(link: str) -> Tuple[bool, str]:
has_error = True
error_message = f'ERR:CLT: {code} : {link}'

except (TimeoutError, requests.exceptions.ConnectTimeout):
has_error = True
error_message = f'ERR:TMO: {link}'

except requests.exceptions.SSLError as error:
has_error = True
error_message = f'ERR:SSL: {error} : {link}'

except requests.exceptions.ConnectionError as error:
has_error = True
error_message = f'ERR:CNT: {error} : {link}'

except (TimeoutError, requests.exceptions.ConnectTimeout):
has_error = True
error_message = f'ERR:TMO: {link}'

except requests.exceptions.TooManyRedirects as error:
has_error = True
error_message = f'ERR:TMR: {error} : {link}'


Loading…
取消
儲存