The reasoning error or cognitive bias displayed is called confirmation bias.
Confirmation bias occurs when an individual is more likely to search, interpret and favor information that supports their worldview or opinions more than information that contradicts them.
The effect of this reasoning error is stronger for emotionally-charged issues, and it can lead to severe consequences when the person persists in doing this.