forked from openlp/openlp
Added exception logging
This commit is contained in:
parent
fa32ce43d7
commit
e0ef84140f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user