Loading app/main.py +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
app/main.py +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading