From 9d67aea4f762e691fdfcd0bc806e2671d63d1bc6 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Sat, 11 Dec 2010 09:59:23 +0000 Subject: [PATCH] Fix missing authors on song import --- openlp/plugins/songs/lib/xml.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/openlp/plugins/songs/lib/xml.py b/openlp/plugins/songs/lib/xml.py index 655ea1e3c..5a5340cb9 100644 --- a/openlp/plugins/songs/lib/xml.py +++ b/openlp/plugins/songs/lib/xml.py @@ -346,8 +346,11 @@ class OpenLyricsParser(object): song.comments = u'' song.song_number = u'' # Process Authors - for author in properties.authors.author: - self._process_author(author.text, song) + try: + for author in properties.authors.author: + self._process_author(author.text, song) + except: + self._process_author(u'Author Unknown', song) self.manager.save_object(song) return song.id