From 31f53f790471a5463882a91bc79373ae20dea7cd Mon Sep 17 00:00:00 2001 From: Shroominic Date: Sun, 17 Aug 2025 22:07:38 -0300 Subject: [PATCH] fix pytests --- routstr/core/logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routstr/core/logging.py b/routstr/core/logging.py index 19919bfd..00a8ad27 100644 --- a/routstr/core/logging.py +++ b/routstr/core/logging.py @@ -124,7 +124,7 @@ class RequestIdFilter(logging.Filter): # Import here to avoid circular imports from .middleware import request_id_context - request_id = request_id_context.get() + request_id = request_id_context.get(None) record.request_id = request_id if request_id else "no-request-id" except ImportError: # If middleware isn't available yet, just use default