diff --git a/src/model.py b/src/model.py index 1a1ab55..fdd803f 100644 --- a/src/model.py +++ b/src/model.py @@ -18,8 +18,8 @@ class Song: self.verses = [] self.name = name.replace("\\\\", "-").replace("\\", "") self.number = number - self.author = author.replace("\\", "") - self.origin = origin.replace("\\", "") + self.author = author.replace("\\", "") if author else author + self.origin = origin.replace("\\", "") if origin else origin self.latex_file = latex_file self.audios = audios self.capo = capo