fixed OpenSong import

This commit is contained in:
Andreas Preikschat 2011-04-19 13:34:04 +02:00
parent 0fa4bee842
commit 3b98cbe0fd
1 changed files with 2 additions and 0 deletions

View File

@ -164,7 +164,9 @@ class OpenSongImport(SongImport):
try:
tree = objectify.parse(file)
except (Error, LxmlError):
self.log_error(file.name, SongStrings.XMLSyntaxError)
log.exception(u'Error parsing XML')
return
root = tree.getroot()
fields = dir(root)
decode = {