mirror of
https://github.com/python/cpython.git
synced 2025-01-20 15:34:52 +08:00
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:
|
||||
print err.msg
|
||||
success = 0
|
||||
except IOError, e:
|
||||
print "Sorry", e
|
||||
success = 0
|
||||
else:
|
||||
if ok == 0:
|
||||
success = 0
|
||||
|
Loading…
Reference in New Issue
Block a user