Cleanup exceptions

This commit is contained in:
Jon Tibble 2011-01-13 02:28:03 +00:00
parent 7f5293c4c8
commit f487464280
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ class CSVBible(BibleDB):
self.create_book(unicode(line[1], details['encoding']),
line[2], int(line[0]))
Receiver.send_message(u'openlp_process_events')
except IOError, IndexError:
except (IOError, IndexError):
log.exception(u'Loading books from file failed')
success = False
finally:

View File

@ -89,7 +89,7 @@ class OpenSongBible(BibleDB):
'Importing <book name> <chapter>...')) %
(db_book.name, int(chapter.attrib[u'n'])))
self.session.commit()
except IOError, AttributeError:
except (IOError, AttributeError):
log.exception(u'Loading bible from OpenSong file failed')
success = False
finally: