From 9ad0aae6566311c6982a20955381cda5a2954519 Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Fri, 6 Nov 2015 00:27:14 +0000 Subject: Issue #18010: Fix pydoc web server search to handle package exceptions Implementation by Antoine Pitrou. --- Lib/pydoc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Lib/pydoc.py') 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): -- cgit v1.2.1