Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
gh-114713: handle case of an empty string passed to ZoneInfo#114731
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Eclips4 commentedJan 29, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I don't think that kind of change is needed in a Also, macOS CI/CD failure is unrelated. I'll restart it later. |
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.
I think it makes sense to check for an empty string beforeif os.path.isabs(path):
, isn't it?
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Thank you@sobolevn for the review. I agree with your statements so I rewrote the check |
Eclips4 left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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.
Thank you, LGTM.
Though I think that a short NEWS entry would be good here.
@wrongnull do you have a moment to add a NEWS entry? |
yeah, I'm going to add it now |
Misc/NEWS.d/next/Library/2025-03-09-01-09-12.gh-issue-114713.lkq9vZ.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
…kq9vZ.rstCo-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
@Eclips4 friendly ping :-) |
Misc/NEWS.d/next/Library/2025-03-09-01-09-12.gh-issue-114713.lkq9vZ.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
884df11
intopython:mainUh oh!
There was an error while loading.Please reload this page.
Thanks@wrongnull for the PR, and@Eclips4 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…oneInfo` (pythonGH-114731)(cherry picked from commit884df11)Co-authored-by: Bogdan Romanyuk <65823030+wrongnull@users.noreply.github.com>Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
GH-132563 is a backport of this pull request to the3.13 branch. |
…ZoneInfo` (GH-114731) (#132563)gh-114713: Handle case of an empty string passed to `zoneinfo.ZoneInfo` (GH-114731)(cherry picked from commit884df11)Co-authored-by: Bogdan Romanyuk <65823030+wrongnull@users.noreply.github.com>Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
…neinfo.ZoneInfo` (python#114731)"This reverts commit884df11.
Revert "pythongh-114713: Handle case of an empty string passed to `zoneinfo.ZoneInfo` (pythonGH-114731)"This reverts commit884df11.(cherry picked from commitfe44fc4)Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Uh oh!
There was an error while loading.Please reload this page.
This special case will make the error message less confusing.
''
#114713