diff --git a/Reconstruction/RecoAlgs/CaloRingerAlgs/python/CaloRingerMetaDataBuilder.py b/Reconstruction/RecoAlgs/CaloRingerAlgs/python/CaloRingerMetaDataBuilder.py index 5f04176934e33717a0d62f452d54babc011cae3c..3b17441c75c03dde0603d3e3c4ddedbab5e128a0 100644 --- a/Reconstruction/RecoAlgs/CaloRingerAlgs/python/CaloRingerMetaDataBuilder.py +++ b/Reconstruction/RecoAlgs/CaloRingerAlgs/python/CaloRingerMetaDataBuilder.py @@ -27,7 +27,7 @@ def metaDataInputAvailable(inputType, inputKey): flag = False from RecExConfig.InputFilePeeker import inputFileSummary metaItemList=inputFileSummary.get('metadata_itemsList') - if ( '%s#%s' % (inputType, inputKey) ) in metaItemList: + if metaItemList and ( '%s#%s' % (inputType, inputKey) ) in metaItemList: flag = True mlog.verbose(("metaItemList does have ContainerType input %s with " "key %s."), inputType, inputKey)