From 7f64106acb373272f24fa6a5907cec0744780bfe Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Fri, 5 May 2017 20:47:19 +0200 Subject: [PATCH] Fix a traceback when serviceitem type isn't set --- openlp/core/lib/serviceitem.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openlp/core/lib/serviceitem.py b/openlp/core/lib/serviceitem.py index f0b7c30bc..7068496f0 100644 --- a/openlp/core/lib/serviceitem.py +++ b/openlp/core/lib/serviceitem.py @@ -246,7 +246,8 @@ class ServiceItem(RegistryProperties): self.renderer.set_item_theme(self.theme) self.theme_data, self.main, self.footer = self.renderer.pre_render() if self.service_item_type == ServiceItemType.Text: - expand_chord_tags = self.name == 'songs' and Settings().value('songs/enable chords') + expand_chord_tags = hasattr(self, 'name') and self.name == 'songs' and Settings().value( + 'songs/enable chords') log.debug('Formatting slides: {title}'.format(title=self.title)) # Save rendered pages to this dict. In the case that a slide is used twice we can use the pages saved to # the dict instead of rendering them again.