Skip to content

Commit f9bf9ff

Browse files
committed
Merge branch 'tickets/DM-51922'
2 parents e362482 + 262257b commit f9bf9ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/activator/middleware_interface.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,10 +822,11 @@ def query_calibs_by_date(butler, label):
822822
.where(expr[dataset_type.name].timespan.overlaps(calib_date))
823823
.with_dimension_records()
824824
)
825-
except (DataIdValueError, MissingDatasetTypeError) as e:
825+
except (DataIdValueError, MissingDatasetTypeError, MissingCollectionError) as e:
826826
# Dimensions/dataset type often invalid for fresh local repo,
827827
# where there are no, and never have been, any matching datasets.
828-
# It *is* a problem for the central repo, but can be caught later.
828+
# May have dimensions but no collections if a previous preload failed.
829+
# These *are* a problem for the central repo, but can be caught later.
829830
_log.debug("%s query failed with %s.", label, e)
830831
datasets = set()
831832
# Trace3 because, in many contexts, datasets is too large to print.

0 commit comments

Comments
 (0)