File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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. 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments