try to disable warnigns in urllib3, to support urllib3 version in backport
This commit is contained in:
parent
8ae215fd1f
commit
920583eae7
1 changed files with 4 additions and 1 deletions
|
|
@ -174,7 +174,10 @@ class Browser(object):
|
||||||
|
|
||||||
session.verify = not self.logger.settings['ssl_insecure'] and self.VERIFY
|
session.verify = not self.logger.settings['ssl_insecure'] and self.VERIFY
|
||||||
if not session.verify:
|
if not session.verify:
|
||||||
|
try:
|
||||||
urllib3.disable_warnings()
|
urllib3.disable_warnings()
|
||||||
|
except AttributeError:
|
||||||
|
self.logger.warning('Urllib3 is too old, warnings won\'t be disable')
|
||||||
|
|
||||||
# defines a max_retries. It's mandatory in case a server is not
|
# defines a max_retries. It's mandatory in case a server is not
|
||||||
# handling keep alive correctly, like the proxy burp
|
# handling keep alive correctly, like the proxy burp
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue