[3.11] gh-102541: Fix Helper.help("mod") for non-existent mod (GH-105934) by miss-islington · Pull Request #106323 · python/cpython
If the output arg to Helper() is a stream rather than the default None, which means 'page to stdout', the ImportError from pydoc.resolve is currently not caught in pydoc.doc. The same error is caught when output is None.
(cherry picked from commit 0530f4f)
Co-authored-by: Kirill Podoprigora kirill.bast9@mail.ru
Co-authored-by: Terry Jan Reedy tjreedy@udel.edu