From 362dfd34e7d2a32f37ac470ff4537cc0a9295793 Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Sat, 22 May 2021 18:22:20 +0200 Subject: [PATCH] corregir error cuando falta autor o origen --- src/model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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