Skip to content

Commit

Permalink
fix: get_accounts to use property
Browse files Browse the repository at this point in the history
  • Loading branch information
Lash-L committed Feb 13, 2023
1 parent a16f442 commit 0985457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/southern_company_api/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ async def get_jwt(self) -> str:
return token

async def get_accounts(self) -> List[Account]:
if self._jwt is None:
await self.get_jwt()
if self.jwt is None:
raise CantReachSouthernCompany()
headers = {"Authorization": f"bearer {self._jwt}"}
async with aiohttp.ClientSession() as session:
async with session.get(
Expand Down

0 comments on commit 0985457

Please sign in to comment.