Catch IOErrors.
This commit is contained in:
parent
71b755646a
commit
6f2adc7cd0
|
@ -68,6 +68,9 @@ def compile_dir(dir, maxlevels=10, ddir=None,
|
||||||
except py_compile.PyCompileError,err:
|
except py_compile.PyCompileError,err:
|
||||||
print err.msg
|
print err.msg
|
||||||
success = 0
|
success = 0
|
||||||
|
except IOError, e:
|
||||||
|
print "Sorry", e
|
||||||
|
success = 0
|
||||||
else:
|
else:
|
||||||
if ok == 0:
|
if ok == 0:
|
||||||
success = 0
|
success = 0
|
||||||
|
|
Loading…
Reference in New Issue