Correctly identify "hostname doesn't match" errors
This commit is contained in:
parent
c72b5238f3
commit
2087561fe6
1 changed files with 2 additions and 1 deletions
|
|
@ -2175,7 +2175,8 @@ def is_requests_cert_error(e):
|
|||
if ('Permission denied' in errstr or # certificate not readable
|
||||
'certificate revoked' in errstr or
|
||||
'certificate expired' in errstr or
|
||||
'certificate verify failed' in errstr):
|
||||
'certificate verify failed' in errstr or
|
||||
"doesn't match" in errstr):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue