Spaces:
Running
Running
File size: 365 Bytes
66641c2 |
1 2 3 4 5 6 7 8 9 10 |
from asyncio.log import logger
from serp import SerpQuery
def log_gathered_exceptions(results: list, context: str, params: SerpQuery):
"""Logs gathered exceptions with context and parameters."""
for exc, q in zip(results, params.queries):
if isinstance(exc, Exception):
logger.warning(f"Error during {context} for query '{q}': {exc}")
|