Skip to content

Commit 8aca009

Browse files
Making mypy happy
1 parent 935435e commit 8aca009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws_lambda_powertools/utilities/auth/aws_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def _request_access_token(auth_endpoint: str, body: dict, headers: dict) -> str:
7575
except (urllib3.exceptions.RequestError, urllib3.exceptions.HTTPError) as error:
7676
# If there is an error with the request, handle it here
7777
# REVIEW: CREATE A CUSTOM EXCEPTION FOR THIS
78-
raise Exception(error)
78+
raise Exception(error) from error
7979

8080

8181
class AWSServicePrefix(Enum):

0 commit comments

Comments
 (0)