pylint fixes
All checks were successful
Actions / build (push) Successful in 11s
Actions / lint (push) Successful in 18s

This commit is contained in:
cswimr 2024-09-15 23:18:56 -04:00
parent 78b87fd940
commit 997fd5437e
Signed by: cswimr
GPG key ID: 3813315477F26F82
6 changed files with 13 additions and 8 deletions

View file

@ -37,7 +37,7 @@ class RestAdapter:
'User-Agent': self._user_agent,
}
sanitized_params = {k: str(v) if isinstance(v, bool) else v for k, v in params.items()} if params else None
self._logger.debug(f"Making {http_method} request to {full_url} with params {sanitized_params}")
self._logger.debug("Making %s request to %s with params %s", http_method, full_url, sanitized_params)
async with aiohttp.ClientSession() as session:
async with session.request(method=http_method, url=full_url, params=sanitized_params, headers=headers, timeout=timeout) as response:
@ -52,7 +52,7 @@ class RestAdapter:
message=response.reason,
data=data,
)
self._logger.debug(f"Received response: {result.status_code} {result.message}")
self._logger.debug("Received response: %s %s", response.status, response.reason)
return result
async def get(self, endpoint: str, params: dict = None, timeout: float = 60) -> Result: