Try to fix bug #986827, an exception is thrown on Windows when opening an imported presentation.

Fixes: https://launchpad.net/bugs/986827
This commit is contained in:
Raoul Snyman 2012-04-22 14:25:39 +02:00
parent 715e9b50a7
commit 9d2b730634
1 changed files with 3 additions and 0 deletions

View File

@ -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