Skip to content

Commit

Permalink
Update connection.py
Browse files Browse the repository at this point in the history
Fixed typo
  • Loading branch information
Farfar authored Sep 7, 2023
1 parent 8bd9d8f commit 515e609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seatconnect/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ async def get_vehicles(self):
# Try new pyJWT syntax if old fails
if subject is None:
try:
exp = jwt.decode(atoken, options={'verify_signature': False}).get('sub', None)
subject = jwt.decode(atoken, options={'verify_signature': False}).get('sub', None)
except:
raise Exception("Could not extract sub attribute from token")
legacy_vehicles = await self.get(
Expand Down

0 comments on commit 515e609

Please sign in to comment.