From e0ef84140f5047b99cbc7785ae0d5c516d1ea714 Mon Sep 17 00:00:00 2001 From: Felipe Polo-Wood Date: Fri, 25 Oct 2013 14:04:11 -0400 Subject: [PATCH] Added exception logging --- openlp/plugins/presentations/lib/presentationcontroller.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openlp/plugins/presentations/lib/presentationcontroller.py b/openlp/plugins/presentations/lib/presentationcontroller.py index ead64f2fe..e352cde07 100644 --- a/openlp/plugins/presentations/lib/presentationcontroller.py +++ b/openlp/plugins/presentations/lib/presentationcontroller.py @@ -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