Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

458 B
Raw Blame
"""Database failures of the tracing repositories, reported as the tracing slice's error."""

from collections.abc import Generator
from contextlib import contextmanager

from sqlalchemy.exc import SQLAlchemyError

from services.tracing.errors import TracingStoreUnavailableError


@contextmanager
def tracing_store_errors() -> Generator[None]:
    try:
        yield
    except SQLAlchemyError as error:
        raise TracingStoreUnavailableError from error