harshadkhetpal opened a new pull request, #65199:
URL: https://github.com/apache/airflow/pull/65199

   ## Summary
   
   Replaces a bare `except:` clause with `except Exception:` in 
`devel-common/src/tests_common/pytest_plugin.py`.
   
   ## Motivation
   
   Bare `except:` clauses catch `BaseException`, which includes 
`KeyboardInterrupt` and `SystemExit`. This can mask critical signals like 
Ctrl-C. PEP 8 flags this as [E722](https://www.flake8rules.com/rules/E722.html).
   
   ## Change
   
   ```python
   # Before
   try:
       ...
   except:
       ...
   
   # After
   try:
       ...
   except Exception:
       ...
   ```
   
   ## Testing
   
   No behavior change in normal error paths — only 
`KeyboardInterrupt`/`SystemExit` now propagate as expected.


-- 
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]

Reply via email to