Skip to content

Commit

Permalink
Disable SSL Check on https connections
Browse files Browse the repository at this point in the history
  • Loading branch information
D4n13l3k00 committed May 10, 2021
1 parent 95bff98 commit 012b51d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions friendly-telegram/modules/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ async def _get_modules_to_load(self):
async def get_repo_list(self, preset=None):
if preset is None:
preset = "minimal"
r = await utils.run_sync(requests.get, self.config["MODULES_REPO"] + "/" + preset + ".txt")
r = await utils.run_sync(requests.get, self.config["MODULES_REPO"] + "/" + preset + ".txt", verify=False)
r.raise_for_status()
return set(filter(lambda x: x, r.text.split("\n")))

Expand All @@ -200,7 +200,7 @@ async def download_and_install(self, module_name, message=None):
url = module_name
else:
url = self.config["MODULES_REPO"] + module_name + ".py"
r = await utils.run_sync(requests.get, url)
r = await utils.run_sync(requests.get, url, verify=False)
if r.status_code == 404:
if message is not None:
await utils.answer(message, self.strings("no_module", message))
Expand Down Expand Up @@ -332,7 +332,7 @@ async def unloadrepocmd(self, message):
await utils.answer(message, self.strings("args_incorrect", message))

async def load_repo(self, gitApi):
req = await utils.run_sync(requests.get, gitApi)
req = await utils.run_sync(requests.get, gitApi, verify=False)
if req.status_code != 200:
return False
files = req.json()
Expand Down

0 comments on commit 012b51d

Please sign in to comment.