Skip to content

Commit f56a79e

Browse files
Refactor code.
1 parent 1c6da04 commit f56a79e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

biothings/web/query/engine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ async def execute(self, query, **options):
142142
raise RawResultInterrupt(res)
143143

144144
if not res["hits"]["hits"]:
145-
scroll_id = str(query.data) if query.data else "None"
146145
try:
147-
await self.client.clear_scroll(scroll_id=query.data)
146+
scroll_id=query.data
147+
await self.client.clear_scroll(scroll_id=scroll_id)
148148
logger.info("Scroll context cleared: %s", scroll_id)
149149
except NotFoundError as e:
150150
logger.warning("Scroll context not found (ID: %s): %s", scroll_id, str(e))

0 commit comments

Comments
 (0)