Worked around Python 3.3 modified exception repr

Refs #20599.