def get_maps(self):
try:
async with aiohttp.get("https://www.hotslogs.com/API/Data/Maps") as response:
maps = await response.json()
return [m["PrimaryName"] for m in maps]
except aiohttp.ClientError:
raise APIError()
评论列表
文章目录