mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-04-11 13:42:29 -04: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 twython import Twython, TwythonError
|
||||||
from keys import keyring
|
from keys import keyring
|
||||||
import authorisationHandler
|
import authorisationHandler
|
||||||
|
from requests import certs
|
||||||
|
import logging
|
||||||
|
log = logging.getLogger("sessionTwitter")
|
||||||
|
|
||||||
class twitter(object):
|
class twitter(object):
|
||||||
|
|
||||||
@ -49,3 +52,6 @@ class twitter(object):
|
|||||||
settings["twitter"]["user_key"] = user_key
|
settings["twitter"]["user_key"] = user_key
|
||||||
settings["twitter"]["user_secret"] = user_secret
|
settings["twitter"]["user_secret"] = user_secret
|
||||||
settings.write()
|
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.request_token_url = self.api_url % 'oauth2/token'
|
||||||
|
|
||||||
self.client_args = client_args or {}
|
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__}
|
default_headers = {'User-Agent': 'Twython v' + __version__}
|
||||||
if 'headers' not in self.client_args:
|
if 'headers' not in self.client_args:
|
||||||
# If they didn't set any headers, set our defaults for them
|
# If they didn't set any headers, set our defaults for them
|
||||||
|
Loading…
x
Reference in New Issue
Block a user