def delete_on_fail(self):
    if (self.type not in LOT_SETTINGS):
        return True
    return LOT_SETTINGS[self.type].get('delete-on-fail', True)
def delete_on_fail(self):
    if (self.type not in LOT_SETTINGS):
        return True
    return LOT_SETTINGS[self.type].get('delete-on-fail', True)