Change from "%s" to %r in exception string