Don't you have to check that the GetItem succeeded (as in check for a NULL result) and use `%(fail)s`.