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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix(errors): clean unnecessary | None in error classes (#36135)
mehmet turac12d33652b65a
diff --git a/api/services/errors/base.py b/api/services/errors/base.pyindex 0f9631190ff..12eb6f51d06 100644--- a/api/services/errors/base.py+++ b/api/services/errors/base.py@@ -1,3 +1,3 @@class BaseServiceError(ValueError):- def __init__(self, description: str | None = None):+ def __init__(self, description: str = ""):self.description = descriptiondiff --git a/api/services/errors/enterprise.py b/api/services/errors/enterprise.pyindex c9126199fd7..60f518dd3cf 100644--- a/api/services/errors/enterprise.py+++ b/api/services/errors/enterprise.py@@ -6,7 +6,7 @@ from services.errors.base import BaseServiceErrorclass EnterpriseServiceError(BaseServiceError):"""Base exception for enterprise service errors."""- def __init__(self, description: str | None = None, status_code: int | None = None):+ def __init__(self, description: str = "", status_code: int | None = None):super().__init__(description)self.status_code = status_code@@ -20,26 +20,26 @@ class EnterpriseAPIError(EnterpriseServiceError):class EnterpriseAPINotFoundError(EnterpriseServiceError):"""Enterprise API returned 404 Not Found."""- def __init__(self, description: str | None = None):+ def __init__(self, description: str = ""):super().__init__(description, status_code=404)class EnterpriseAPIForbiddenError(EnterpriseServiceError):"""Enterprise API returned 403 Forbidden."""- def __init__(self, description: str | None = None):+ def __init__(self, description: str = ""):super().__init__(description, status_code=403)class EnterpriseAPIUnauthorizedError(EnterpriseServiceError):"""Enterprise API returned 401 Unauthorized."""- def __init__(self, description: str | None = None):+ def __init__(self, description: str = ""):super().__init__(description, status_code=401)class EnterpriseAPIBadRequestError(EnterpriseServiceError):"""Enterprise API returned 400 Bad Request."""- def __init__(self, description: str | None = None):+ def __init__(self, description: str = ""):super().__init__(description, status_code=400)diff --git a/api/services/errors/llm.py b/api/services/errors/llm.pyindex 5bf34f3aa60..407779d795c 100644--- a/api/services/errors/llm.py+++ b/api/services/errors/llm.py@@ -1,9 +1,9 @@class InvokeError(Exception):"""Base class for all LLM exceptions."""- description: str | None = None+ description: str = ""- def __init__(self, description: str | None = None):+ def __init__(self, description: str = ""):self.description = descriptiondef __str__(self):