Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6f2adc7

Browse files
committed
Catch IOErrors.
1 parent 71b7556 commit 6f2adc7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/compileall.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ def compile_dir(dir, maxlevels=10, ddir=None,
6868
except py_compile.PyCompileError,err:
6969
print err.msg
7070
success = 0
71+
except IOError, e:
72+
print "Sorry", e
73+
success = 0
7174
else:
7275
if ok == 0:
7376
success = 0

0 commit comments

Comments
 (0)