Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: cleanup finally-returns #614

Merged
merged 2 commits into from
Oct 28, 2024
Merged

Conversation

bsipocz
Copy link
Member

@bsipocz bsipocz commented Oct 25, 2024

To fix #612

Note, changelog CI check is expected to fail with the milestone check, follow-up PR to change logic is to come for that

@bsipocz bsipocz added this to the v1.5.4 milestone Oct 25, 2024
Copy link
Contributor

@msdemlei msdemlei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have briefly tried to understand why the original author did the try-finally construct here in the first place, but I'm fairly confident that there are no external invariants they wanted to preserve or that they consciously wanted to swallow the exception.

So, I'm merging. Thanks!

@msdemlei msdemlei merged commit 2904bef into astropy:main Oct 28, 2024
10 of 11 checks passed
@bsipocz bsipocz modified the milestones: v1.5.4, v1.6 Oct 31, 2024
@bsipocz bsipocz deleted the BUG_finally_return branch November 1, 2024 16:54
@bsipocz
Copy link
Member Author

bsipocz commented Nov 1, 2024

Actually, this has causing a regression for the NAVO notebooks while doing some HEASARC queries. I don't say this PR is wrong, but clearly there are more bugs somewhere. (And due to some blacklists/etc I cannot debug this right now, so would just do the 1.6 branching before this PR and leave this to get fully sorted in either 1.6.1 or in 1.7)

@bsipocz
Copy link
Member Author

bsipocz commented Nov 1, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

return in finally swallows exceptions
2 participants