Added exception logging

This commit is contained in:
Felipe Polo-Wood 2013-10-25 14:04:11 -04:00
parent fa32ce43d7
commit e0ef84140f
1 changed files with 2 additions and 0 deletions

View File

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