mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Disabling SSL verification for now
This commit is contained in:
parent
33733eb2c4
commit
a674d046c1
@ -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())
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user