Skip to content

Commit

Permalink
fix for #174
Browse files Browse the repository at this point in the history
  • Loading branch information
devans committed Aug 31, 2017
1 parent ac63a56 commit 46ff3cc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/cirrus/plugins/builders/conda_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ def create(self, **kwargs):
conda = kwargs.get('conda', self.conda_bin)
upgrade = kwargs.get('upgrade', False)
nosetupdevelop = kwargs.get('nosetupdevelop', False)
environment = kwargs.get(
'environment',
self.build_config.get('conda-environment', None)
)
environment = kwargs.get('environment', None)
if environment is None:
environment = self.build_config.get('conda-environment', None)
if environment is None:
msg = "No conda environment yaml specified in cirrus.conf [build] section or via --environment option"
LOGGER.error(msg)
Expand Down

0 comments on commit 46ff3cc

Please sign in to comment.