From ee69b2792e3ca2786a8a0643b2e376a24e18195b Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Fri, 4 May 2018 08:44:59 -0400 Subject: Fix return value --- rambo/meta.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/rambo/meta.py b/rambo/meta.py index 2f563b2..b71d6f8 100755 --- a/rambo/meta.py +++ b/rambo/meta.py @@ -257,9 +257,10 @@ class MetaSet(object): GIT_DESCRIBE_TAG=gd_tag, GIT_DESCRIBE_NUMBER=gd_number, GIT_DESCRIBE_HASH=gd_hash) - return safe_load(output) + fastyaml = safe_load(output) except(KeyError): print('no source field in recipe: {}'.format(pkgname)) + return fastyaml def read_recipe_selection(self, directory, recipe_list): '''Process a directory, reading in each conda recipe found, creating @@ -301,14 +302,16 @@ class MetaSet(object): except: rundep_names = '' # TODO INFO - print('"Incomplete" metadata. No run requirements.') + print('"Incomplete" metadata for {}. No run requirements.'.format( + rdirname)) try: blddep_names = [x.split()[0] for x in fastyaml['requirements']['build']] except: blddep_names = '' - print('"Incomplete" metadata. No build requirements.') + print('"Incomplete" metadata for {}. No build requirements.'.format( + rdirname)) # If filter-nonpy specified, skip all recipes that have a python # dependency. -- cgit