Skip to content

Commit

Permalink
Explicitly filter out Sanic warnings after Sanic is initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandarmijat committed Jul 3, 2024
1 parent 67749b3 commit 21241aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rasa_sdk/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ def create_app(
"""
app = Sanic("rasa_sdk", configure_logging=False)

# Reset Sanic warnings filter that allows the triggering of Sanic warnings
warnings.filterwarnings("ignore", category=DeprecationWarning, module=r"sanic.*")

configure_cors(app, cors_origins)

executor = ActionExecutor()
Expand Down

0 comments on commit 21241aa

Please sign in to comment.