From 5dc8f99a61831b85936bb56a83ad1100be9bb47f Mon Sep 17 00:00:00 2001 From: Phil Elson Date: Fri, 13 May 2016 06:09:48 +0100 Subject: [PATCH] Fixed the case where conda-forge.yml wasn't defined correctly (https://github.com/conda-forge/staged-recipes/issues/594). --- conda_smithy/configure_feedstock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda_smithy/configure_feedstock.py b/conda_smithy/configure_feedstock.py index 6d2afec4b..df1fd60cb 100755 --- a/conda_smithy/configure_feedstock.py +++ b/conda_smithy/configure_feedstock.py @@ -317,7 +317,7 @@ def main(forge_file_directory): warnings.warn('No conda-forge.yml found. Assuming default options.') else: with open(forge_yml, "r") as fh: - file_config = list(yaml.load_all(fh))[0] + file_config = list(yaml.load_all(fh))[0] or {} # The config is just the union of the defaults, and the overriden # values. for key, value in file_config.items():