Critical fix

This commit is contained in:
thematdev 2023-02-01 14:32:07 +03:00
parent 1cd9fc859f
commit a1c5e8ab1f
Signed by: thematdev
GPG Key ID: D12878639B090D90

View File

@ -195,7 +195,7 @@ class Scraper:
def api_request(self, method: str, params): def api_request(self, method: str, params):
"""Make a request to Codeforces API with ``params``""" """Make a request to Codeforces API with ``params``"""
resp = self.get(f'api/{method}') resp = self.get(f'api/{method}', params=params)
try: try:
response = resp.json() response = resp.json()
except ValueError: except ValueError: