rusackas opened a new pull request, #40559:
URL: https://github.com/apache/superset/pull/40559

   ### SUMMARY
   
   The MCP webdriver pool-stats debug endpoint previously returned the raw 
exception string to the caller (`{"error": str(e)}`). It now logs the exception 
server-side via `logger.exception(...)` and returns a fixed, generic error 
message instead. Surfaced by static analysis as a code-quality improvement.
   
   ### BEFORE
   ```python
   except Exception as e:
       return jsonify({"error": str(e), "status": "error"}), 500
   ```
   
   ### AFTER
   ```python
   except Exception:
       logger.exception("Failed to retrieve webdriver pool stats")
       return jsonify({"error": "Failed to retrieve pool stats", "status": 
"error"}), 500
   ```
   
   ### TESTING INSTRUCTIONS
   
   - [x] Syntax-checked; error path still returns HTTP 500
   - [ ] CI green
   
   ### ADDITIONAL INFORMATION
   
   - [ ] Has associated issue: n/a
   - [ ] Required feature flags: n/a
   - [ ] Changes UI: No
   - [ ] Includes DB Migration: No
   - [ ] Introduces new feature or API: No
   - [ ] Removes existing feature or API: No
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to