From 21241aa8d1e35dfdef4d0d3601bf0a7dc456ab2f Mon Sep 17 00:00:00 2001 From: aleksandarmijat Date: Wed, 3 Jul 2024 12:47:27 +0200 Subject: [PATCH] Explicitly filter out Sanic warnings after Sanic is initialized --- rasa_sdk/endpoint.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rasa_sdk/endpoint.py b/rasa_sdk/endpoint.py index a310ebe0..93d2e46b 100644 --- a/rasa_sdk/endpoint.py +++ b/rasa_sdk/endpoint.py @@ -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()