Skip to content

Commit

Permalink
fix ssl
Browse files Browse the repository at this point in the history
Signed-off-by: TheBossMagnus <[email protected]>
  • Loading branch information
TheBossMagnus committed Feb 2, 2024
1 parent d929600 commit 9a95d63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/get_mod_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ async def request_from_api(session, ids):
'Content-Type': 'application/json',
'Accept': 'application/json'
}
data = {'modIds': ids_list}
data = {'modIds': [348521, 238222]}

try:
async with session.post(URL, headers=headers, json=data) as response:
async with session.post(URL, headers=headers, json=data, ssl=False) as response:
response.raise_for_status()
data = await response.json()
names = [project.get('name') for project in data]
Expand Down

0 comments on commit 9a95d63

Please sign in to comment.