Skip to content

Commit

Permalink
Fixes missing optional eagle key crash
Browse files Browse the repository at this point in the history
Eagle key is optional per schema, but this code crashed if it was missing from the config file.
  • Loading branch information
asparke2 committed Apr 27, 2021
1 parent d5cac35 commit 645c5f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildstockbatch/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ def process_results(self, skip_combine=False, force_upload=False):
if 'athena' in aws_conf:
postprocessing.create_athena_tables(aws_conf, os.path.basename(self.output_dir), s3_bucket, s3_prefix)

if not self.cfg['eagle'].get('postprocessing', {}).get('keep_intermediate_files', False):
if not self.cfg.get('eagle', {}).get('postprocessing', {}).get('keep_intermediate_files', False):
logger.info("Removing intermediate files.")
postprocessing.remove_intermediate_files(fs, self.results_dir)
else:
Expand Down

0 comments on commit 645c5f5

Please sign in to comment.