Skip to content

Commit 17aa3e2

Browse files
Update recipe.py (#2544)
refactoring code with For Else which is more pythonic, concise and efficient
1 parent 4563f3e commit 17aa3e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/recipe.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ def get_recipe(cls, name, ctx):
728728
if recipe_file is not None:
729729
break
730730

731-
if not recipe_file:
731+
else:
732732
raise ValueError('Recipe does not exist: {}'.format(name))
733733

734734
mod = import_recipe('pythonforandroid.recipes.{}'.format(name), recipe_file)

0 commit comments

Comments
 (0)