def check_recipe(self, recipe):
    if (len(recipe.get('about/summary', '')) > self.max_length):
        self.message('about/summary')
def check_recipe(self, recipe):
    if (len(recipe.get('about/summary', )) > self.max_length):
        self.message('about/summary')