Commit ec16f205 authored by echel0n's avatar echel0n
Browse files

Suppressed InsecureRequestWarnings

parent 8b6981b4
# Changelog
- * 69ef0c5 - 2018-08-25: Fixed unicode issues with timezone updater
- * 0144134 - 2018-08-25: Suppressed InsecureRequestWarnings
- * 8b6981b - 2018-08-25: Fixed unicode issues with timezone updater
- * 9797220 - 2018-08-25: Fixed spacing for status view
- * 8279ece - 2018-08-24: Fixed quality badge for manual searches
- * fb31d87 - 2018-08-24: Release v9.3.59
......
......@@ -23,12 +23,13 @@ import ssl
import urllib2
import certifi
import cfscrape as cfscrape
import cfscrape
import requests
from cachecontrol import CacheControlAdapter
from fake_useragent import UserAgent
from requests import Session
from requests.utils import dict_from_cookiejar
from urllib3 import disable_warnings
import sickrage
from sickrage.core.helpers import chmodAsParent, remove_file_failed
......@@ -74,6 +75,8 @@ class WebSession(Session):
self.headers.update({'Accept-Encoding': 'gzip, deflate',
'User-Agent': (sickrage.app.user_agent, UserAgent().random)[random_ua]})
if not verify: disable_warnings()
response = super(WebSession, self).request(method, url, verify=self._get_ssl_cert(verify), *args, **kwargs)
try:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment