diff --git a/backend/config.py b/backend/config.py index 4a7456fd2..2fcc0ba64 100644 --- a/backend/config.py +++ b/backend/config.py @@ -8,7 +8,6 @@ from chromadb import Settings from bs4 import BeautifulSoup from typing import TypeVar, Generic from pydantic import BaseModel -from pydantic.error_wrappers import ValidationError from typing import Optional from pathlib import Path @@ -770,7 +769,7 @@ class BannerModel(BaseModel): try: banners = json.loads(os.environ.get("WEBUI_BANNERS", "[]")) banners = [BannerModel(**banner) for banner in banners] -except ValidationError as e: +except Exception as e: print(f"Error loading WEBUI_BANNERS: {e}") banners = []