summaryrefslogtreecommitdiff
path: root/src/roster.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-08-31 23:06:46 +0200
committermathieui <mathieui@mathieui.net>2012-08-31 23:06:46 +0200
commite2a62bbbe7bc89d64abfaafae91f0c79053692bf (patch)
tree19a56b7c1f37324efc8cba9bd97eb540ad4a2d3a /src/roster.py
parent84887d17af1e445652074b5611df92799069f173 (diff)
downloadpoezio-e2a62bbbe7bc89d64abfaafae91f0c79053692bf.tar.gz
poezio-e2a62bbbe7bc89d64abfaafae91f0c79053692bf.tar.bz2
poezio-e2a62bbbe7bc89d64abfaafae91f0c79053692bf.tar.xz
poezio-e2a62bbbe7bc89d64abfaafae91f0c79053692bf.zip
Give an empty name to a group if it hasn’t got one
Diffstat (limited to 'src/roster.py')
-rw-r--r--src/roster.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roster.py b/src/roster.py
index 0c91b3fe..12c529ba 100644
--- a/src/roster.py
+++ b/src/roster.py
@@ -224,7 +224,7 @@ class RosterGroup(object):
if not contacts:
contacts = []
self.contacts = set(contacts)
- self.name = name
+ self.name = name if name is not None else ''
self.folded = folded # if the group content is to be shown
def __iter__(self):