Skip to content
Snippets Groups Projects
Commit 63a4a1f3 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'emptyMetaProtect.CaloRingerAlgs-20170916' into 'master'

CaloRingerAlgs: Protect against crash on missing meta item list.

See merge request !4735

Former-commit-id: 6b528881
parents 92cd03ab cbd32f80
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