Skip to content

Commit

Permalink
Fix exceptions more
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Feb 19, 2024
1 parent ecf0693 commit b3f8fe3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tesla_fleet_api/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ def __init__(self, data: dict[str, str] | None = None):
self.status = data.get("status", self.status)
self.error = data.get("error") or data.get("message")
self.error_description = data.get("error_description")
self.message = self.message or self.error_description
super().__init__(self.message)


class ResponseError(TeslaFleetError):
Expand Down

0 comments on commit b3f8fe3

Please sign in to comment.