Skip to content

Commit

Permalink
fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbo committed Aug 30, 2022
1 parent 25d0e09 commit ef703ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rasa_sdk/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ async def exception_handler(request, exception: Exception):
)
body = {"error": str(exception), "request_body": request.json}
return response.json(body, status=500)

return app


Expand Down
1 change: 1 addition & 0 deletions tests/test_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def test_server_webhook_handles_action_exception():
assert response.json.get("error") == "test exception"
assert response.json.get("request_body") == data


def test_server_webhook_custom_action_returns_200():
data = {
"next_action": "custom_action",
Expand Down

0 comments on commit ef703ff

Please sign in to comment.