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:
ctx = Context()
for name in Recipe.list_recipes():
recipe = Recipe.get_recipe(name, ctx)
print("{recipe.name:<12} {recipe.version:<8}".format(
recipe=recipe))
try:
recipe = Recipe.get_recipe(name, ctx)
print("{recipe.name:<12} {recipe.version:<8}".format(recipe=recipe))
except:
pass
def clean(self):
parser = argparse.ArgumentParser(