Added exception logging

This commit is contained in:
Felipe Polo-Wood 2013-10-25 14:04:11 -04:00
parent fa32ce43d7
commit e0ef84140f

View File

@ -303,6 +303,7 @@ class PresentationDocument(object):
with open(titlesfile) as fi: with open(titlesfile) as fi:
titles = fi.read().splitlines() titles = fi.read().splitlines()
except: except:
log.exception('Failed to open/read existing titles file')
titles = [] titles = []
for index in range(len(titles)): for index in range(len(titles)):
notesfile = os.path.join(self.get_thumbnail_folder(), notesfile = os.path.join(self.get_thumbnail_folder(),
@ -313,6 +314,7 @@ class PresentationDocument(object):
with open(notesfile) as fn: with open(notesfile) as fn:
note = fn.read() note = fn.read()
except: except:
log.exception('Failed to open/read notes file')
note = '' note = ''
notes.append(note) notes.append(note)
return titles, notes return titles, notes