From: Pavlos Ratis Date: Thu, 15 May 2014 17:51:14 +0000 (+0300) Subject: fix packed string when it gets NoneType values X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=af0263e4288fab2e888aaff428a87e80a04e0466;p=gentoo-keys.git fix packed string when it gets NoneType values --- diff --git a/gkeys/config.py b/gkeys/config.py index 3edc463..1ff5a18 100644 --- a/gkeys/config.py +++ b/gkeys/config.py @@ -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'''