Fixed a traceback when opening an old service file. Once an invalid service order is opened and saved the footer is corrected.

bzr-revno: 1385
This commit is contained in:
Andreas Preikschat 2011-03-13 19:11:56 +01:00
commit 7e0430cdca

View File

@ -183,6 +183,10 @@ class ServiceItem(object):
else:
log.error(u'Invalid value renderer :%s' % self.service_item_type)
self.title = clean_tags(self.title)
# The footer should never be None, but to be compatible with older
# release of OpenLP, we have to correct this to avoid tracebacks.
if self.raw_footer is None:
self.raw_footer = []
self.foot_text = \
u'<br>'.join([footer for footer in self.raw_footer if footer])