diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-01-16 11:02:43 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-01-16 11:02:43 (GMT) |
commit | 6f2adc7cd07783f5eaff3ce64a1ae466bd516e46 (patch) | |
tree | dabd7e182ce7c1f7a202398e4d79ced02047b35f /Lib/compileall.py | |
parent | 71b755646afc045051dcbad93237200eb8e0e8ee (diff) | |
download | cpython-6f2adc7cd07783f5eaff3ce64a1ae466bd516e46.zip cpython-6f2adc7cd07783f5eaff3ce64a1ae466bd516e46.tar.gz cpython-6f2adc7cd07783f5eaff3ce64a1ae466bd516e46.tar.bz2 |
Catch IOErrors.
Diffstat (limited to 'Lib/compileall.py')
-rw-r--r-- | Lib/compileall.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/compileall.py b/Lib/compileall.py index 0f4010f..ebe04ff 100644 --- a/Lib/compileall.py +++ b/Lib/compileall.py @@ -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 |