From: Martin v. Löwis Date: Thu, 16 Jan 2003 11:02:43 +0000 (+0000) Subject: Catch IOErrors. X-Git-Tag: v2.3c1~2439 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f2adc7cd07783f5eaff3ce64a1ae466bd516e46;p=thirdparty%2FPython%2Fcpython.git Catch IOErrors. --- diff --git a/Lib/compileall.py b/Lib/compileall.py index 0f4010f24eb5..ebe04ff46027 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