From aad408a879072d4fc4d2fad52b73d0aee234606a Mon Sep 17 00:00:00 2001 From: Clinton Christian Date: Tue, 30 Jul 2024 21:44:56 -0400 Subject: [PATCH] gh-2985: Fixed startup serve UnboundLocalError. --- sanic/mixins/startup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sanic/mixins/startup.py b/sanic/mixins/startup.py index 7dd64abf16..8723668aa3 100644 --- a/sanic/mixins/startup.py +++ b/sanic/mixins/startup.py @@ -1033,6 +1033,7 @@ def serve( socks = [] sync_manager = Manager() + worker_state: Mapping[str, Any] = { "state": "NONE" } setup_ext(primary) exit_code = 0 try: