summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2012-07-15 12:12:14 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2012-07-15 12:12:14 (GMT)
commit2824cb507d80a6d609d4a2f4400185cbd08b4c70 (patch)
treebf42d60ed1446af04a3433b2fc5c0ca05a5a3e79 /Lib/pydoc.py
parent8ecf50474ce3d0ef34fbcce940566c70370e57ad (diff)
downloadcpython-2824cb507d80a6d609d4a2f4400185cbd08b4c70.zip
cpython-2824cb507d80a6d609d4a2f4400185cbd08b4c70.tar.gz
cpython-2824cb507d80a6d609d4a2f4400185cbd08b4c70.tar.bz2
Issue #15343: A lot more than just unicode decoding can go wrong when retrieving a source file
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py2
1 files changed, 1 insertions, 1 deletions
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 @@ class ModuleScanner:
if hasattr(loader, 'get_source'):
try:
source = loader.get_source(modname)
- except UnicodeDecodeError:
+ except Exception:
if onerror:
onerror(modname)
continue