The error will be more clear using message like `"Key %s was not found in record" % key` would make the exception more clear