Skip to content

Commit 1c6da04

Browse files
Improve error handling.
1 parent 554005a commit 1c6da04

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
@@ -146,8 +146,8 @@ async def execute(self, query, **options):
146146
try:
147147
await self.client.clear_scroll(scroll_id=query.data)
148148
logger.info("Scroll context cleared: %s", scroll_id)
149-
except Exception as e:
150-
logger.warning("Failed to clear scroll context (ID: %s): %s", scroll_id, str(e))
149+
except NotFoundError as e:
150+
logger.warning("Scroll context not found (ID: %s): %s", scroll_id, str(e))
151151
# Always raise this exception regardless of whether clear_scroll succeeds
152152
raise EndScrollInterrupt()
153153

0 commit comments

Comments
 (0)