odysseusphone / src /exceptions.py
Earring9405's picture
Upload folder using huggingface_hub (part 2)
ed1e1a8 verified
Raw
History Blame Contribute Delete
747 Bytes
# src/exceptions.py
"""Backward-compatible shim — the single source of truth is core/exceptions.py.
Historically this module was a byte-for-byte duplicate of core/exceptions.py,
which is the canonical definition (imported by app.py, core/__init__.py, and
routes/chat_routes.py). To kill the drift, this now simply re-exports the
exception classes from core.exceptions so there is exactly one place that
defines them. Existing `from src.exceptions import ...` callers keep working.
"""
from core.exceptions import ( # noqa: F401
SessionNotFoundError,
InvalidFileUploadError,
LLMServiceError,
WebSearchError,
)
__all__ = [
"SessionNotFoundError",
"InvalidFileUploadError",
"LLMServiceError",
"WebSearchError",
]