Skip to content

Commit

Permalink
Ignore SSL errors when connecting to Stratz
Browse files Browse the repository at this point in the history
  • Loading branch information
hauzer committed Jul 27, 2021
1 parent 413598a commit 5ecf283
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dota_hero_grid_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import json
from pathlib import Path
import aiohttp
import socket
import sys
import vdf

Expand Down Expand Up @@ -52,7 +53,12 @@ def __init__(self, name, position, ranks, pickrate_treshold):
async def create(cls, *args, **kwargs):
inst = cls(*args, **kwargs)

async with aiohttp.ClientSession() as session:
connector = aiohttp.TCPConnector(
family=socket.AF_INET,
ssl=False,
)

async with aiohttp.ClientSession(connector=connector) as session:
query = f'''
{{
heroStats {{
Expand Down

0 comments on commit 5ecf283

Please sign in to comment.