Skip to content

Commit

Permalink
Update recipe.py (#2544)
Browse files Browse the repository at this point in the history
refactoring code with For Else which is more pythonic, concise and efficient
  • Loading branch information
idiomaticrefactoring authored Jan 21, 2022
1 parent 4563f3e commit 17aa3e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pythonforandroid/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 17aa3e2

Please sign in to comment.