mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #18010: Fix pydoc web server search to handle package exceptions
Implementation by Antoine Pitrou.
This commit is contained in:
parent
ade0412613
commit
9ad0aae656
3 changed files with 38 additions and 7 deletions
|
@ -2355,7 +2355,9 @@ def _url_handler(url, content_type="text/html"):
|
|||
|
||||
with warnings.catch_warnings():
|
||||
warnings.filterwarnings('ignore') # ignore problems during import
|
||||
ModuleScanner().run(callback, key)
|
||||
def onerror(modname):
|
||||
pass
|
||||
ModuleScanner().run(callback, key, onerror=onerror)
|
||||
|
||||
# format page
|
||||
def bltinlink(name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue