johnslavik commented on code in PR #59770:
URL: https://github.com/apache/airflow/pull/59770#discussion_r2644332623


##########
providers/celery/src/airflow/providers/celery/cli/celery_command.py:
##########
@@ -135,7 +135,8 @@ def _run_stale_bundle_cleanup():
         try:
             yield
         finally:
-            return
+            pass  # ignore any problems
+        return

Review Comment:
   This is tricky -- it won't swallow any exceptions, but from now on propagate 
them!
   
   `finally-pass` is essentially a no-op.
   
   Instead, I suggest:
   
   ```suggestion
           with suppress(BaseException):
               yield
           return
   ```



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