summaryrefslogtreecommitdiff
path: root/Lib/compileall.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/compileall.py')
-rw-r--r--Lib/compileall.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/compileall.py b/Lib/compileall.py
index 0f4010f24e..ebe04ff460 100644
--- a/Lib/compileall.py
+++ b/Lib/compileall.py
@@ -68,6 +68,9 @@ def compile_dir(dir, maxlevels=10, ddir=None,
except py_compile.PyCompileError,err:
print err.msg
success = 0
+ except IOError, e:
+ print "Sorry", e
+ success = 0
else:
if ok == 0:
success = 0