From 84e99ca7ecf3291d6c5859fa9520bbb4931ae432 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Fontaine?= Date: Thu, 7 Dec 2017 09:11:19 +0100 Subject: [PATCH] fix bug when memories doesn't have title --- getmyancestors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getmyancestors.py b/getmyancestors.py index ef6a9e3..06f5783 100755 --- a/getmyancestors.py +++ b/getmyancestors.py @@ -315,7 +315,7 @@ class Memorie: if 'titles' in data: self.description = data['titles'][0]['value'] if 'descriptions' in data: - self.description += '\n' + data['descriptions'][0]['value'] + self.description = (self.description or '') + '\n' + data['descriptions'][0]['value'] def print(self, file=sys.stdout): file.write('1 OBJE\n2 FORM URL\n') -- 2.52.0