Unbreak the songimport tests...

This commit is contained in:
Tomas Groth 2017-05-11 22:01:43 +02:00
parent ad94e7c19f
commit 3287027315
1 changed files with 4 additions and 1 deletions

View File

@ -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):
"""