summaryrefslogtreecommitdiff
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2015-11-06 00:27:14 +0000
committerMartin Panter <vadmium+py@gmail.com>2015-11-06 00:27:14 +0000
commit9ad0aae6566311c6982a20955381cda5a2954519 (patch)
treee0215a04b7c80e95c549874cfbfaadf946587277 /Lib/pydoc.py
parentade0412613f7628e34d947168cd5f447fa6b8f17 (diff)
downloadcpython-git-9ad0aae6566311c6982a20955381cda5a2954519.tar.gz
Issue #18010: Fix pydoc web server search to handle package exceptions
Implementation by Antoine Pitrou.
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 0c7b60d98d..f42299f712 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -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):