Replace silent BaseException swallowing in Docker teardown with structured warning capture #156
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tracked from the medium-priority refactoring playbook in #154.
Docker teardown catches
BaseExceptionand discards it silently, which can hide cleanup failures and resource leaks. This makes it difficult to diagnose leftover containers or volumes after a failed run.Work
except BaseException: pass(or equivalent) in the Docker teardown path with structured warning capture — log the exception at WARNING level with enough context (container ID, operation) to diagnose the failure.