Skip to content

Commit

Permalink
Change status code in require_auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav0Art committed Nov 9, 2023
1 parent 1ae8714 commit 3309525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/routers/dependencies/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ def require_auth(x_email: str = Header(None), x_password: str = Header(None)):

except mysql.connector.Error as err:
print(err)
raise HTTPException(status_code=500, detail=f"Something went wrong: {err}")
raise HTTPException(status_code=400, detail=f"Something went wrong: {err}")
finally:
cursor.close()

0 comments on commit 3309525

Please sign in to comment.