diff --git a/pythonforandroid/recipe.py b/pythonforandroid/recipe.py index b28a947367..05e50d5198 100644 --- a/pythonforandroid/recipe.py +++ b/pythonforandroid/recipe.py @@ -728,7 +728,7 @@ def get_recipe(cls, name, ctx): if recipe_file is not None: break - if not recipe_file: + else: raise ValueError('Recipe does not exist: {}'.format(name)) mod = import_recipe('pythonforandroid.recipes.{}'.format(name), recipe_file)