Skip to content

Commit e9a47d0

Browse files
Refactor code.
1 parent f56a79e commit e9a47d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

biothings/web/query/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ async def execute(self, query, **options):
142142
raise RawResultInterrupt(res)
143143

144144
if not res["hits"]["hits"]:
145+
scroll_id=query.data
145146
try:
146-
scroll_id=query.data
147147
await self.client.clear_scroll(scroll_id=scroll_id)
148148
logger.info("Scroll context cleared: %s", scroll_id)
149149
except NotFoundError as e:

0 commit comments

Comments
 (0)