Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-134155: fix AttributeError in email._header_value_parser.get_address#134194
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
gh-134155: fix AttributeError in email._header_value_parser.get_address#134194
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
The defects fix seems right
Misc/NEWS.d/next/Library/2025-05-18-23-46-21.gh-issue-134152.30HwbX.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
UnboundLocalError
while parsingmessage_id
in email…0HwbX.rstCo-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Drat. I somehow missed your PR before I submitted mine (#134233). We should combine the two. You want to pull in the extra tests from mine? Thanks for catching the defect issue. I think my early return is clearer than setting pos=0 even though they have the same effect. |
Yeah, your solution with early return looks better than mine. I'm happy to revert my changes with |
…d .get_qcontent"This reverts commit5c3fa11.
…thub.com:sergey-miryanov/cpython intopythongh-134152-fix-unbound-local-error-in-email
Tests should pass after#134233 will be merged. |
Sure, that works for me. |
@bitdancer I'm sorry to bother you. Perhaps I misunderstood you. Do you expect me to merge your PR with this one? |
No, I just haven't gotten around to merging mine yet. I'll do it soon ;) |
Thanks! I wasn't sure that I got you right, so I thought I'd clarify. |
(Updating from |
UnboundLocalError
while parsingmessage_id
in emailUnboundLocalError
while parsingmessage_id
in emailUnboundLocalError
while parsingmessage_id
in emailUh oh!
There was an error while loading.Please reload this page.
Misc/NEWS.d/next/Library/2025-05-18-23-46-21.gh-issue-134152.30HwbX.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
I have made the requested changes; please review again |
Thanks for making the requested changes! @bitdancer: please review the changes made to this pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This looks like it was a stupid mistake on my part :)
PR looks good just one tweak.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Uh oh!
There was an error while loading.Please reload this page.
I have made the requested changes; please review again. |
Thanks for making the requested changes! @bitdancer: please review the changes made to this pull request. |
Uh oh!
There was an error while loading.Please reload this page.
There are two errors:
parse_message_id
- I found that in some cases error placed to the list of tokens not of defects.UnboundLocalError
inemail._header_value_parser.parse_message_id
#134152AttributeError
inemail._header_value_parser.get_address
#134155