Unbreak the songimport tests...

This commit is contained in:
Tomas Groth 2017-05-11 22:01:43 +02:00
parent ad94e7c19f
commit 3287027315

View File

@ -256,7 +256,10 @@ class SongImport(QtCore.QObject):
if author2.endswith('.'): if author2.endswith('.'):
author2 = author2[:-1] author2 = author2[:-1]
if author2: if author2:
if type:
self.add_author(author2, type) self.add_author(author2, type)
else:
self.add_author(author2)
def add_author(self, author, type=None): def add_author(self, author, type=None):
""" """