Get rig of EnvironmentError (#16705)
diff --git a/Lib/compileall.py b/Lib/compileall.py
index d3cff6a..fd22fc3c 100644
--- a/Lib/compileall.py
+++ b/Lib/compileall.py
@@ -209,7 +209,7 @@
             with (sys.stdin if args.flist=='-' else open(args.flist)) as f:
                 for line in f:
                     compile_dests.append(line.strip())
-        except EnvironmentError:
+        except OSError:
             print("Error reading file list {}".format(args.flist))
             return False