fixed linting issues

This commit is contained in:
c-d-p
2025-04-23 00:57:31 +02:00
parent be00f021ba
commit d5d0a24403
36 changed files with 28 additions and 56 deletions

View File

@@ -1,6 +1,5 @@
# core/config.py
from pydantic_settings import BaseSettings
from pydantic import Field # Import Field for potential default values if needed
import os
DOTENV_PATH = os.path.join(os.path.dirname(__file__), "../.env")

View File

@@ -19,7 +19,7 @@ def get_engine():
_engine = create_engine(settings.DB_URL)
try:
_engine.connect()
except Exception as e:
except Exception:
raise Exception("Database connection failed. Is the database server running?")
Base.metadata.create_all(_engine) # Create tables here
return _engine