fixed linting issues
This commit is contained in:
@@ -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