Commit 484bbef1 authored by Anthony Jacob's avatar Anthony Jacob
Browse files

Modifier main.py

parent d938ee3f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ def error404(error):
def check_connection():
    app.logger.info(f"pass into check connection")
    try:
        db.session.execute(text("SELECT 1"))
        db.session.execute("SELECT 1")
    except Exception as e:
        app.logger.error(f"Database connection check failed: {e}")
        db.session.rollback()  # Reset the session