From af0263e4288fab2e888aaff428a87e80a04e0466 Mon Sep 17 00:00:00 2001 From: Pavlos Ratis Date: Thu, 15 May 2014 20:51:14 +0300 Subject: [PATCH] fix packed string when it gets NoneType values --- gkeys/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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''' -- 2.26.2