Remove unnecessary check
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user