Skip to content
Snippets Groups Projects
Commit 6b528881 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
parents 0b7298a8 d07322c9
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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