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

CaloRingerAlgs: Protect against crash on missing meta item list.

Protect against crash on missing meta item list.
Needed to fix ATN test failures in OnlineRecoTests.
parent 06e46718
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ def metaDataInputAvailable(inputType, inputKey): ...@@ -27,7 +27,7 @@ def metaDataInputAvailable(inputType, inputKey):
flag = False flag = False
from RecExConfig.InputFilePeeker import inputFileSummary from RecExConfig.InputFilePeeker import inputFileSummary
metaItemList=inputFileSummary.get('metadata_itemsList') metaItemList=inputFileSummary.get('metadata_itemsList')
if ( '%s#%s' % (inputType, inputKey) ) in metaItemList: if metaItemList and ( '%s#%s' % (inputType, inputKey) ) in metaItemList:
flag = True flag = True
mlog.verbose(("metaItemList does have ContainerType input %s with " mlog.verbose(("metaItemList does have ContainerType input %s with "
"key %s."), inputType, inputKey) "key %s."), inputType, inputKey)
......
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