From 9d2b73063485d3b6cd01d163e914a3aac8421159 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Sun, 22 Apr 2012 14:25:39 +0200 Subject: [PATCH] Try to fix bug #986827, an exception is thrown on Windows when opening an imported presentation. Fixes: https://launchpad.net/bugs/986827 --- openlp/plugins/presentations/lib/impresscontroller.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openlp/plugins/presentations/lib/impresscontroller.py b/openlp/plugins/presentations/lib/impresscontroller.py index d647249a3..bef745136 100644 --- a/openlp/plugins/presentations/lib/impresscontroller.py +++ b/openlp/plugins/presentations/lib/impresscontroller.py @@ -42,6 +42,9 @@ import time if os.name == u'nt': from win32com.client import Dispatch import pywintypes + # Declare an empty exception to match the exception imported from UNO + class ErrorCodeIOException(Exception): + pass else: try: import uno