|
@@ -68,8 +68,11 @@ def load(db,fb,fbDMR,iDicom,lDicom,project,label):
|
|
|
'frameOfReferenceInstanceUid':None}
|
|
|
|
|
|
dmrVolumes=iDicom.loadVolumes(fbDMR,project,iPath,dicomReadFilter)
|
|
|
- dmrNode=dmrVolumes[0]['node']
|
|
|
- dmrNode.SetName(label+'_DMR')
|
|
|
+ try:
|
|
|
+ dmrNode=dmrVolumes[0]['node']
|
|
|
+ dmrNode.SetName(label+'_DMR')
|
|
|
+ except IndexError:
|
|
|
+ return returnObj
|
|
|
|
|
|
#load CT-RS
|
|
|
ctrsFilter={'variable':'type','value':'CT-RS','oper':'eq'}
|