don't traceback when securitylabel has no displaymarking element. Fixes #7006

This commit is contained in:
Yann Leboulanger 2011-10-07 10:17:35 +02:00
parent 11c6abda35
commit 83458833c3
1 changed files with 5 additions and 1 deletions

View File

@ -1417,7 +1417,11 @@ ConnectionJingle, ConnectionIBBytestream):
labels = {} labels = {}
ll = [] ll = []
for item in items: for item in items:
label = item.getTag('displaymarking').getData() display_tag = item.getTag('displaymarking')
if display_tag:
label = display_tag.getData()
else:
label = ''
labels[label] = item labels[label] = item
ll.append(label) ll.append(label)
if to not in self.seclabel_catalogues: if to not in self.seclabel_catalogues: