96cf82c
Index: Lib/pydoc.py
96cf82c
===================================================================
96cf82c
--- Lib/pydoc.py	(revision 76636)
96cf82c
+++ Lib/pydoc.py	(working copy)
96cf82c
@@ -1961,10 +1961,14 @@
96cf82c
         if modname[-9:] == '.__init__':
96cf82c
             modname = modname[:-9] + ' (package)'
96cf82c
         print modname, desc and '- ' + desc
96cf82c
+    def onerror(modname):
96cf82c
+        # Ignore non-ImportError exceptions raised whilst trying to
96cf82c
+        # import modules
96cf82c
+        pass
96cf82c
     try: import warnings
96cf82c
     except ImportError: pass
96cf82c
     else: warnings.filterwarnings('ignore') # ignore problems during import
96cf82c
-    ModuleScanner().run(callback, key)
96cf82c
+    ModuleScanner().run(callback, key, onerror=onerror)
96cf82c
 
96cf82c
 # --------------------------------------------------- web browser interface
96cf82c