diff --git a/seatconnect/connection.py b/seatconnect/connection.py index 8d39a39..4af0ffa 100644 --- a/seatconnect/connection.py +++ b/seatconnect/connection.py @@ -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(