Skip to content

Commit

Permalink
Fix crashing on partial pipeline runs.
Browse files Browse the repository at this point in the history
  • Loading branch information
kfindeisen committed Nov 8, 2017
1 parent 4a754db commit c65621e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/lsst/ap/verify/pipeline_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import json

import lsst.log
import lsst.daf.base as dafBase
import lsst.ap.pipe as ap_pipe
from lsst.verify import Job

Expand Down Expand Up @@ -289,7 +290,9 @@ def run_ap_pipe(dataset, working_repo, parsed_cmd_line, metrics_job):
"""
log = lsst.log.Log.getLogger('ap.verify.pipeline_driver.run_ap_pipe')

metadata = _ingest_raws(dataset, working_repo, metrics_job)
# Easiest way to defend against None return values
metadata = dafBase.PropertySet()
metadata.combine(_ingest_raws(dataset, working_repo, metrics_job))
metadata.combine(_ingest_calibs(dataset, working_repo, metrics_job))
log.info('Data ingested')

Expand Down

0 comments on commit c65621e

Please sign in to comment.