Be even more lenient when catching errors from readlines().
diff --git a/Lib/linecache.py b/Lib/linecache.py
index 77e3ab7..90b8646 100644
--- a/Lib/linecache.py
+++ b/Lib/linecache.py
@@ -125,11 +125,12 @@
# No luck
## print '*** Cannot stat', filename, ':', msg
return []
+## print("Refreshing cache for %s..." % fullname)
try:
fp = open(fullname, 'rU')
lines = fp.readlines()
fp.close()
- except IOError as msg:
+ except Exception as msg:
## print '*** Cannot open', fullname, ':', msg
return []
coding = "utf-8"