Detect invalid office converter backend during initialization

This commit is contained in:
Roberto Rosario
2011-11-22 05:07:19 -04:00
parent 9988a8f543
commit 99e6bf652f
+6 -1
View File
@@ -1,3 +1,8 @@
from converter.office_converter import OfficeConverter
from converter.exceptions import OfficeBackendError
office_converter = OfficeConverter()
try:
office_converter = OfficeConverter()
except OfficeBackendError:
office_converter = None