Skip to content

Commit

Permalink
Return Dict of validation_exception_handler updated
Browse files Browse the repository at this point in the history
  • Loading branch information
bulletinmybeard committed Mar 31, 2024
1 parent 3cfded9 commit 2042221
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions audit_logger/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ async def validation_exception_handler(
{
"msg": error["msg"],
"type": error["type"],
"loc": error["loc"][0],
"option": error["loc"][1] if len(error["loc"]) > 1 else None,
"field": error["loc"][1] if len(error["loc"]) > 1 else None,
}
for error in errors
]
Expand Down

0 comments on commit 2042221

Please sign in to comment.