diff --git a/CHANGELOG.md b/CHANGELOG.md index a26d56f..2fa7ca3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Unreleased * Add support for from field for sending messages * Fix IMAP identifiers not encoding correctly * Add missing schedule-specific fields to Message model +* Fix NylasOAuthError not setting the status code properly v6.3.1 ---------------- diff --git a/nylas/models/errors.py b/nylas/models/errors.py index d59b61b..83ff3de 100644 --- a/nylas/models/errors.py +++ b/nylas/models/errors.py @@ -134,7 +134,7 @@ def __init__( oauth_error: The error details from the API. status_code: The HTTP status code of the error response. """ - super().__init__(oauth_error.error_description, status_code) + super().__init__(oauth_error.error_description, None, status_code) self.error: str = oauth_error.error self.error_code: int = oauth_error.error_code self.error_description: str = oauth_error.error_description