fix packed string when it gets NoneType values
[gentoo-keys.git] / gkeys / config.py
index 3edc463c5d7eac3021a699a362e84028d1490d09..1ff5a18483d6d3463173a449b6c66575d65142f3 100644 (file)
@@ -146,7 +146,7 @@ class GKEY(namedtuple('GKEY', ['nick', 'name', 'keyid', 'longkeyid',
     @property
     def packed_string(self):
         '''Returns a separator joined string of the field values'''
-        return self.field_separator.join([x for x in self._packed_values()])
+        return self.field_separator.join([str(x) for x in self._packed_values()])
 
     def _unpack_string(self, packed_data):
         '''Returns a list of the separator joined string of the field values'''