Catch IOErrors.

This commit is contained in:
Martin v. Löwis 2003-01-16 11:02:43 +00:00
parent 71b755646a
commit 6f2adc7cd0
1 changed files with 3 additions and 0 deletions

View File

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