Skip to content

Commit 5869eb2

Browse files
committed
Made recipe list ignore broken recipes
1 parent a8ace86 commit 5869eb2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pythonforandroid/toolchain.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,11 @@ def recipes(self, args):
553553
recipe = Recipe.get_recipe(name, ctx)
554554
except IOError:
555555
warning('Recipe "{}" could not be loaded'.format(name))
556+
except SyntaxError:
557+
import traceback
558+
traceback.print_exc()
559+
warning(('Recipe "{}" could not be loaded due to a '
560+
'syntax error').format(name))
556561
version = str(recipe.version)
557562
print('{Fore.BLUE}{Style.BRIGHT}{recipe.name:<12} '
558563
'{Style.RESET_ALL}{Fore.LIGHTBLUE_EX}'

0 commit comments

Comments
 (0)