fixed linting issues
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user