SSL verification disabled in Twitter authorisation

This commit is contained in:
Manuel Cortez 2015-07-06 12:10:09 -05:00
parent 2296a03688
commit 755e004d97

View File

@ -127,7 +127,7 @@ class Twython(EndpointsMixin, object):
# Never be used again. # Never be used again.
client_args_copy = self.client_args.copy() client_args_copy = self.client_args.copy()
for k, v in client_args_copy.items(): for k, v in client_args_copy.items():
if k in ('cert', 'hooks', 'max_redirects', 'proxies'): if k in ('verify', 'cert', 'hooks', 'max_redirects', 'proxies'):
setattr(self.client, k, v) setattr(self.client, k, v)
self.client_args.pop(k) # Pop, pop! self.client_args.pop(k) # Pop, pop!