Skip to content

Commit 45e2daa

Browse files
committed
fix: KeyError: 'request' in line 125
1 parent 7c2346a commit 45e2daa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fastapi_elasticsearch_middleware/elasticsearch_middleware.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ async def intercept_send(response):
105105
start_time = time.time()
106106

107107
async def intercept_receive():
108+
nonlocal log_data
108109
message = await receive()
109110

110111
more_body = message.get("more_body", False)

0 commit comments

Comments
 (0)