forked from openlp/openlp
Fixed bug #986827: Exception doesn't exist on Windows.
bzr-revno: 1954 Fixes: https://launchpad.net/bugs/986827
This commit is contained in:
commit
2a7e5fc781
@ -42,6 +42,9 @@ import time
|
|||||||
if os.name == u'nt':
|
if os.name == u'nt':
|
||||||
from win32com.client import Dispatch
|
from win32com.client import Dispatch
|
||||||
import pywintypes
|
import pywintypes
|
||||||
|
# Declare an empty exception to match the exception imported from UNO
|
||||||
|
class ErrorCodeIOException(Exception):
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
import uno
|
import uno
|
||||||
|
Loading…
Reference in New Issue
Block a user