Skip to content

Commit

Permalink
reformatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbo committed Aug 30, 2022
1 parent ef703ff commit 0039926
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rasa_sdk/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ async def actions(_) -> HTTPResponse:
@app.exception(Exception)
async def exception_handler(request, exception: Exception):
logger.error(
msg=f"Exception occurred during execution of request {request}", exc_info=exception
msg=f"Exception occurred during execution of request {request}",
exc_info=exception,
)
body = {"error": str(exception), "request_body": request.json}
return response.json(body, status=500)
Expand Down

0 comments on commit 0039926

Please sign in to comment.