commit | 2824cb507d80a6d609d4a2f4400185cbd08b4c70 | [log] [tgz] |
---|---|---|
author | Nick Coghlan <ncoghlan@gmail.com> | Sun Jul 15 22:12:14 2012 +1000 |
committer | Nick Coghlan <ncoghlan@gmail.com> | Sun Jul 15 22:12:14 2012 +1000 |
tree | bf42d60ed1446af04a3433b2fc5c0ca05a5a3e79 | |
parent | 8ecf50474ce3d0ef34fbcce940566c70370e57ad [diff] [blame] |
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