Remove unnecessary check

This commit is contained in:
Roberto Rosario
2014-10-23 00:45:59 -04:00
parent db2ca4fb58
commit 86ab079926

View File

@@ -107,7 +107,7 @@ class OfficeConverter(object):
class OfficeConverterBackendDirect(object):
def __init__(self):
self.libreoffice_path = LIBREOFFICE_PATH if LIBREOFFICE_PATH else u'/usr/bin/libreoffice'
self.libreoffice_path = LIBREOFFICE_PATH
if not os.path.exists(self.libreoffice_path):
raise OfficeBackendError('cannot find LibreOffice executable')
logger.debug('self.libreoffice_path: %s' % self.libreoffice_path)