Better to use the repr:  "No runtime has attribute {!r}".format(name)