add another pattern to is_requests_cert_error()
This commit is contained in:
parent
8d3a736637
commit
a12f26b07d
1 changed files with 4 additions and 2 deletions
|
|
@ -1852,8 +1852,10 @@ def is_requests_cert_error(e):
|
|||
|
||||
# Using str(e) is slightly ugly, but the error stacks in python-requests
|
||||
# are way more ugly.
|
||||
if ('certificate revoked' in str(e) or
|
||||
'certificate expired' in str(e)):
|
||||
errstr = str(e)
|
||||
if ('certificate revoked' in errstr or
|
||||
'certificate expired' in errstr or
|
||||
'certificate verify failed' in errstr):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue