A note on cohomological localization