fix for "'NoneType' object has no attribute 'setdefault'"

pull/366/head
Jacco Ligthart 2019-03-11 13:12:29 +01:00 committed by GitHub
parent ea6aeff4e1
commit 00bce80bdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ class PyMISP(object):
'User-Agent': 'PyMISP {} - Python {}.{}.{}'.format(__version__, *sys.version_info)})
if logger.isEnabledFor(logging.DEBUG):
logger.debug(prepped.headers)
settings = s.merge_environment_settings(req.url, proxies=self.proxies, stream=None, verify=self.ssl, cert=self.cert)
settings = s.merge_environment_settings(req.url, proxies=self.proxies or {}, stream=None, verify=self.ssl, cert=self.cert)
if self.asynch and background_callback is not None:
return s.send(prepped, background_callback=background_callback, **settings)
else: