From 3287027315f3bd9375c16baf0fcb7f8df2dfb13c Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Thu, 11 May 2017 22:01:43 +0200 Subject: [PATCH] Unbreak the songimport tests... --- openlp/plugins/songs/lib/importers/songimport.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openlp/plugins/songs/lib/importers/songimport.py b/openlp/plugins/songs/lib/importers/songimport.py index 58c124410..7ea66a3da 100644 --- a/openlp/plugins/songs/lib/importers/songimport.py +++ b/openlp/plugins/songs/lib/importers/songimport.py @@ -256,7 +256,10 @@ class SongImport(QtCore.QObject): if author2.endswith('.'): author2 = author2[:-1] if author2: - self.add_author(author2, type) + if type: + self.add_author(author2, type) + else: + self.add_author(author2) def add_author(self, author, type=None): """