Issue #15343: A lot more than just unicode decoding can go wrong when retrieving a source file
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 4aa48e5..5d63ffa 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -2048,7 +2048,7 @@
                 if hasattr(loader, 'get_source'):
                     try:
                         source = loader.get_source(modname)
-                    except UnicodeDecodeError:
+                    except Exception:
                         if onerror:
                             onerror(modname)
                         continue