Skip to content

Commit

Permalink
chore: improve 429 message
Browse files Browse the repository at this point in the history
  • Loading branch information
tal42levy authored and talevy42 committed Sep 7, 2023
1 parent 4ebea74 commit c02dec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parsons/auth0/auth0.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def get_users_by_email(self, email):
url = f"{self.base_url}/api/v2/users-by-email"
val = requests.get(url, headers=self.headers, params={"email": email})
if val.status_code == 429:
raise requests.exceptions.ConnectionError("Too many requests")
raise requests.exceptions.ConnectionError(val.json()['message'])
return Table(val.json())

def upsert_user(
Expand Down

0 comments on commit c02dec0

Please sign in to comment.