mirror of
https://github.com/python/cpython.git
synced 2025-07-12 05:45:15 +00:00
Catch IOErrors.
This commit is contained in:
parent
71b755646a
commit
6f2adc7cd0
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue