Skip to content

Commit

Permalink
Merge pull request #1120 from RasaHQ/explicitly-filter-sanic-warnings
Browse files Browse the repository at this point in the history
Explicitly filter out Sanic warnings after Sanic is initialized
  • Loading branch information
aleksandarmijat authored Jul 3, 2024
2 parents 67749b3 + 0a0c9ac commit 3c6a5f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/1120.misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Reset Sanic warnings filter to prevent the triggering of Sanic warnings.
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 3c6a5f4

Please sign in to comment.