diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-01-16 11:02:43 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-01-16 11:02:43 +0000 |
commit | df9e1253567bff68d3f909f0ff636a80213e8069 (patch) | |
tree | 0e58f043ee19679f8f35e60a6e4f8851243cfc76 /Lib/compileall.py | |
parent | 7e58b01e1201e9fa2202082c7594a49cbbc06da8 (diff) | |
download | cpython-df9e1253567bff68d3f909f0ff636a80213e8069.tar.gz |
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 0f4010f24e..ebe04ff460 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 |