diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index 905fa1ff7d7..2c6df1d2cd0 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -478,7 +478,7 @@ class build_ext (Command): for ext in self.extensions: try: self.build_extension(ext) - except (CCompilerError, DistutilsError), e: + except (CCompilerError, DistutilsError, CompileError), e: if not ext.optional: raise self.warn('building extension "%s" failed: %s' %