with aiohttp.Timeout(self.timeout_short):
async with session.get(url, headers=self.headers_req) as response:
response_text = await response.read()
self.logger.debug("GET {} [{}] {}".format(url, response.status, response_text[:100]))
if response.status == 404: # NOT_FOUND
raise ROClientException("No {} found with id '{}'".format(item[:-1], item_id_name),
with aiohttp.Timeout(self.timeout_short):
async with session.get(url, headers=self.headers_req) as response:
response_text = await response.read()
self.logger.debug("GET {} [{}] {}".format(url, response.status, response_text[:100]))
if response.status == 404: # NOT_FOUND
raise ROClientException("No {} found with id '{}'".format(item[:-1], item_id_name),