SSL not supported anymore
Signed-off-by: Jean-Philippe Dutreve <jdutreve@winancial.com>
This commit is contained in:
parent
f9f933c32b
commit
399393871a
1 changed files with 11 additions and 0 deletions
|
|
@ -18,6 +18,8 @@
|
|||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
import ssl
|
||||
|
||||
from weboob.browser import LoginBrowser, URL, need_login
|
||||
from weboob.exceptions import BrowserIncorrectPassword
|
||||
|
||||
|
|
@ -36,6 +38,15 @@ class GanAssurances(LoginBrowser):
|
|||
self.BASEURL = 'https://%s' % website
|
||||
super(GanAssurances, self).__init__(*args, **kwargs)
|
||||
|
||||
def prepare_request(self, req):
|
||||
"""
|
||||
Gan Assurances does not support SSL anymore.
|
||||
"""
|
||||
preq = super(GanAssurances, self).prepare_request(req)
|
||||
conn = self.session.adapters['https://'].get_connection(preq.url)
|
||||
conn.ssl_version = ssl.PROTOCOL_TLSv1
|
||||
return preq
|
||||
|
||||
def do_login(self):
|
||||
"""
|
||||
Attempt to log in.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue