Skip to content

Commit

Permalink
fix typing issue, do not throw requests.HTTPError
Browse files Browse the repository at this point in the history
  • Loading branch information
bain3 committed Oct 3, 2023
1 parent 3f11d73 commit 7dba96f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pronotepy/pronoteAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def post(

# error protection
if not response.ok:
raise requests.HTTPError(f"Status code: {response.status_code}")
raise PronoteAPIError(f"Bad request (http status: {response.status_code})")
if "Erreur" in response.json():
r_json = response.json()
if r_json["Erreur"]["G"] == 22:
Expand Down

0 comments on commit 7dba96f

Please sign in to comment.