Skip to content

Conversation

jcristau
Copy link
Contributor

As far as I can tell this has been broken since
pallets/flask@fd62210

@jcristau jcristau requested a review from a team as a code owner June 30, 2025 17:54
Copy link
Contributor

@bhearsum bhearsum left a comment

Choose a reason for hiding this comment

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

Thanks for adding a test for this.

@jcristau
Copy link
Contributor Author

I didn't actually add a test here :)
It's a good idea though.

@bhearsum
Copy link
Contributor

I didn't actually add a test here :) It's a good idea though.

Oh, heh. For some reason I read the test_json.py hunk as a test 🤦

@bhearsum
Copy link
Contributor

(no pressure to actually go add something, to be clear)

@jcristau
Copy link
Contributor Author

jcristau commented Jul 1, 2025

I've updated testGMPResponseWithSigningAutographPermanentFailure to catch this, and in doing so uncovered another bug: we were raising Exception(Exception("unable to contact autograph")) because of some weirdness in AUSTransaction.__exit__.

jcristau added 3 commits July 1, 2025 09:06
As far as I can tell this has been broken since
pallets/flask@fd62210
Returning False lets python know we don't want the exception suppressed;
we don't need to wrap it and raise again.
…aphPermanentFailure

Ensure the exception we're getting is what we expected.
@jcristau jcristau force-pushed the flask-error-handler branch from 3c73667 to 525239d Compare July 1, 2025 07:07
@jcristau jcristau merged commit 38dbd22 into mozilla-releng:main Jul 1, 2025
10 checks passed
@jcristau jcristau deleted the flask-error-handler branch July 1, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants