fix error when call recipe list "toolchain.py recipes"

This commit is contained in:
amru rosyada 2018-03-17 06:11:56 +07:00
parent 822c712956
commit b96498a9b4

View file

@ -1167,9 +1167,12 @@ Xcode:
else: else:
ctx = Context() ctx = Context()
for name in Recipe.list_recipes(): for name in Recipe.list_recipes():
recipe = Recipe.get_recipe(name, ctx) try:
print("{recipe.name:<12} {recipe.version:<8}".format( recipe = Recipe.get_recipe(name, ctx)
recipe=recipe)) print("{recipe.name:<12} {recipe.version:<8}".format(recipe=recipe))
except:
pass
def clean(self): def clean(self):
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(