]> granicus.if.org Git - python/commitdiff
Catch IOErrors.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 16 Jan 2003 11:02:43 +0000 (11:02 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 16 Jan 2003 11:02:43 +0000 (11:02 +0000)
Lib/compileall.py

index 0f4010f24eb52fcfbaff9cd929bb29900e9a7394..ebe04ff460274b2f18c5baf0140e324b357bef32 100644 (file)
@@ -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