replace threw with raised (#16714)
2 files changed