changeset 1013d2e5a4f1 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=1013d2e5a4f1 description: don't traceback when securitylabel has no displaymarking element. Fixes #7006
diffstat:
src/common/connection_handlers.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r 266ac0500f09 -r 1013d2e5a4f1 src/common/connection_handlers.py --- a/src/common/connection_handlers.py Thu Oct 06 09:11:14 2011 +0200 +++ b/src/common/connection_handlers.py Fri Oct 07 10:17:35 2011 +0200 @@ -1418,7 +1418,11 @@ labels = {} ll = [] 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 ll.append(label) if to not in self.seclabel_catalogues: