I don't think that's correct. He was speaking at a college graduation and I'm guessing there were plenty of blacks in the class. He was taking lightly veiled shots at Trump and I don't understand why you think there was a racial component to this comment: The president also slammed the debate over "political correctness," warning the graduates against leaders who do not pay attention to nuance.
"If you were listening to the political debate, you might wonder where this strain of anti-intellectualism came from," Obama said. "Class of 2016, let me be as clear as I can be: In politics and in life, ignorance is not a virtue."