Issue #15343: A lot more than just unicode decoding can go wrong when retrieving a source file

This commit is contained in:
Nick Coghlan 2012-07-15 22:12:14 +10:00
parent 8ecf50474c
commit 2824cb507d
3 changed files with 2157 additions and 2129 deletions

View file

@ -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