Catch IOErrors.
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 @@
                 except py_compile.PyCompileError,err:
                     print err.msg
                     success = 0
+                except IOError, e:
+                    print "Sorry", e
+                    success = 0
                 else:
                     if ok == 0:
                         success = 0