pylint fixes
This commit is contained in:
parent
78b87fd940
commit
997fd5437e
6 changed files with 13 additions and 8 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue