This is not needed, `WindowsError` is subclass of `OSError`, so catching `OSError` should work on all platforms.