You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug BaseException is being caught in places and it's not clear this should be done or is appropriate. Bugbear is not complaining about it as B036 as shown in #7397. Should these be replaced with just Exception? It's not documented anywhere if there's an explicit reason to not do this.
Hi @ericspod , I've submitted a PR to address this issue: #8859. It replaces all 17 occurrences of except BaseException with except Exception across monai/ and tests/. Happy to adjust if needed.
Activity
AlexanderSanin commentedon May 18, 2026
Hi @ericspod , I've submitted a PR to address this issue: #8859. It replaces all 17 occurrences of
except BaseExceptionwithexcept Exceptionacrossmonai/andtests/. Happy to adjust if needed.Replace BaseException with Exception across codebase (Project-MONAI#8859
Replace BaseException with Exception across codebase (Project-MONAI#8859