Fix error handling for double exception call. Added debugging for Song XML class

This commit is contained in:
Tim Bentley 2009-10-31 10:19:30 +00:00
commit 9eeaf98b66
2 changed files with 5 additions and 1 deletions

View File

@ -41,6 +41,10 @@ class SongXMLBuilder(object):
</lyrics>
</song>
"""
global log
log = logging.getLogger(u'SongXMLBuilder')
log.info(u'SongXMLBuilder Loaded')
def __init__(self):
"""
Set up the song builder.
@ -81,6 +85,7 @@ class SongXMLBuilder(object):
``content``
The actual text of the verse to be stored.
"""
#log.debug(u'add_verse_to_lyrics %s, %s\n%s' % (type, number, content))
verse = self.song_xml.createElement(u'verse')
verse.setAttribute(u'type', type)
verse.setAttribute(u'label', number)

View File

@ -108,7 +108,6 @@ class SongManager():
except:
log.exception(u'Could not save song to song database')
self.session.rollback()
log.exception(u'Could not save song to song database')
return False
def delete_song(self, songid):