Issue #18010: Fix pydoc web server search to handle package exceptions

Implementation by Antoine Pitrou.
This commit is contained in:
Martin Panter 2015-11-06 00:27:14 +00:00
parent ade0412613
commit 9ad0aae656
3 changed files with 38 additions and 7 deletions

View file

@ -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):