diff --git a/teslajsonpy/connection.py b/teslajsonpy/connection.py index b9c64bd0..bcf7d727 100644 --- a/teslajsonpy/connection.py +++ b/teslajsonpy/connection.py @@ -216,7 +216,7 @@ async def __open( f'{data.get("error")}:{data.get("error_description")}' ) except aiohttp.ClientResponseError as exception_: - raise TeslaException(exception_.status) + raise TeslaException(exception_.status) from exception_ return data async def websocket_connect(self, vin: int, vehicle_id: int, **kwargs):