Skip to content
Snippets Groups Projects
Commit 22e83d4c authored by scott snyder's avatar scott snyder
Browse files

CaloRingerAlgs: Protect against missing metadata.

Prevents crash in RecExeRecoTest ATN tests.
parent c5635d94
Loading
......@@ -81,7 +81,7 @@ else:
# Add metadata builder/reader
from RecExConfig.InputFilePeeker import inputFileSummary
metaItemDict = inputFileSummary.get( 'metadata_itemsDic' )
if CRAlgBuilder.usable() or any( ['RingSetConf' in key for key in metaItemDict ] ):
if CRAlgBuilder.usable() or (metaItemDict and any( ['RingSetConf' in key for key in metaItemDict ] )):
MetaDataBuilder = CaloRingerMetaDataBuilder()
# Make sure all MetaData algoritms have the ringerOutputLevel
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment