File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ class OrganizationsService(Service):
99
1010 async def list (self ) -> List [types .Organization ]:
1111 """Retrieve a list of all organizations"""
12- async with self ._client .get (self .endpoint ) as r :
13- s = await r .json ()
14- return [types .Organization .parse_obj (s ) for s in s .get ("data" )]
12+ async with self ._client .get (self .endpoint ) as resp :
13+ resp_json = await r .json ()
14+ return [types .Organization .parse_obj (obj ) for obj in s .get ("data" , [] )]
1515
1616 async def get (self , organization_id : str ) -> types .Organization :
1717 """Retrieve an organization by their id"""
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ license = "MIT"
1616readme = " README.md"
1717
1818[tool .poetry .dependencies ]
19- python = " ^3.11 "
19+ python = " ^3.10 "
2020aiohttp = " 3.9.0"
2121pydantic = " ^1.10.13"
2222
You can’t perform that action at this time.
0 commit comments