🐛 fix(users.py): improve readability by formatting raise statement to multiple lines
This commit is contained in:
parent
af0ac6f2f6
commit
1da3a7d260
1 changed files with 3 additions and 1 deletions
|
|
@ -43,7 +43,9 @@ def add_user(
|
|||
db.refresh(new_user)
|
||||
except IntegrityError as e:
|
||||
db.rollback()
|
||||
raise HTTPException(status_code=400, detail="This username is unavailable.") from e
|
||||
raise HTTPException(
|
||||
status_code=400, detail="This username is unavailable."
|
||||
) from e
|
||||
|
||||
return new_user
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue