President Donald Trump’s nominee for attorney general says he can’t rule out jailing reporters for doing their jobs.

William Barr told the Senate Judiciary Committee on Tuesday that there are certain situations where a reporter could be held in contempt “as a last resort.”

READ MORE: William Barr’s record on 4 key issues

His comment came in response to a question from Sen. Amy Klobuchar, a Minnesota Democrat.

Barr said the situations he was envisioning would involve news organizations “putting out stuff that is hurting the country.”

In 2017, former Attorney General Jeff Sessions said he could not make a “blanket commitment” in response to a similar question from Klobuchar.