goransh-buh opened a new issue, #69441:
URL: https://github.com/apache/airflow/issues/69441

   ## Bug Report
   
   ### Description
   Some `except` clauses catch overly broad exception types (e.g., bare 
`except:` or `except Exception:`), which can accidentally swallow important 
errors like `KeyboardInterrupt` or `SystemExit`.
   
   ### Example
   ```python
   # Problematic:
   try:
       do_something()
   except:  # catches EVERYTHING including KeyboardInterrupt
       pass
   
   # Better:
   try:
       do_something()
   except ValueError as e:
       logger.warning(f"Value error: {e}")
   ```
   
   ### Expected Behavior
   Exception handlers should catch only the specific exceptions they know how 
to handle.
   
   ### Impact
   - Makes it impossible to interrupt the program with Ctrl+C in some cases
   - Hides unexpected errors that should be investigated
   - Makes debugging significantly harder
   
   ### Suggested Fix
   Replace broad `except` clauses with specific exception types wherever 
possible.
   


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