Disabling SSL verification for now

This commit is contained in:
Manuel Cortez 2015-06-26 17:53:49 -05:00
parent 33733eb2c4
commit a674d046c1
2 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,9 @@ import webbrowser
from twython import Twython, TwythonError
from keys import keyring
import authorisationHandler
from requests import certs
import logging
log = logging.getLogger("sessionTwitter")
class twitter(object):
@ -49,3 +52,6 @@ class twitter(object):
settings["twitter"]["user_key"] = user_key
settings["twitter"]["user_secret"] = user_secret
settings.write()
def __init__(self):
log.error(certs.where())

View File

@ -86,6 +86,8 @@ class Twython(EndpointsMixin, object):
self.request_token_url = self.api_url % 'oauth2/token'
self.client_args = client_args or {}
# Disables the SSL verification for Twython calls.
self.client_args["verify"] = False
default_headers = {'User-Agent': 'Twython v' + __version__}
if 'headers' not in self.client_args:
# If they didn't set any headers, set our defaults for them