mirror of https://github.com/python/cpython
gh-98374: Suppress ImportError for invalid query for help() command. (gh-98450)
This commit is contained in:
parent
1ca6647f22
commit
4156b2fc13
|
@ -1997,7 +1997,10 @@ class Helper:
|
|||
_GoInteractive = object()
|
||||
def __call__(self, request=_GoInteractive):
|
||||
if request is not self._GoInteractive:
|
||||
self.help(request)
|
||||
try:
|
||||
self.help(request)
|
||||
except ImportError as e:
|
||||
self.output.write(f'{e}\n')
|
||||
else:
|
||||
self.intro()
|
||||
self.interact()
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Suppress ImportError for invalid query for help() command. Patch by Dong-hee
|
||||
Na.
|
Loading…
Reference in New Issue