-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-102541: Hide traceback in help prompt #102614
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
Conversation
Could someone review it? =) |
@sobolevn |
Can someone from core developers review it? |
The most appropriate coredev reviewer would be whoever merged the PR that caused the regression. That would have to be a feature addition after 3.10.0b1, May 2021 (and hence not backported to 3.10) and before 3.11.0 in Oct 2022. #98450 fixed a related bug -- help need more automated tests. |
I will take a look at this PR tonight (UTC+9) |
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.
LGTM with nit comment.
Writing test code will be great, but I know this case is very hard to write. :)
Please rebase the PR. |
Misc/NEWS.d/next/Library/2023-03-12-01-17-15.gh-issue-102541.LK1adc.rst
Outdated
Show resolved
Hide resolved
Sorry, @Eclips4 and @corona10, I could not cleanly backport this to |
(cherry picked from commit ba516e7) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
GH-105778 is a backport of this pull request to the 3.12 branch. |
GH-105830 is a backport of this pull request to the 3.11 branch. |
(cherry picked from commit ba516e7) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Add
is_cli
param todoc
function (by default, set toFalse
).When
is_cli
arg isTrue
, we raise a ImportError, otherwise, just show amissing_pattern
.Although, add a variable
missing_pattern
, which now is used byresolve
anddoc
functions.This PR absolutely compatible with #89130.
I like tests, but i think, that case shouldn't be tested.
If core-devs approve this, it should be merged to
3.11
and3.12
branches.On 3.10 this works fine.
help
CLI shows a traceback when import failed #102541