Merge branch 'esclear/mayan-edms-patch-1' into merge_patch-1

This commit is contained in:
Roberto Rosario
2018-07-08 02:37:48 -04:00

View File

@@ -48,12 +48,12 @@ class PyOCR(OCRBackendBase):
builder=pyocr.builders.TextBuilder()
)
except Exception as exception:
error_message = 'Exception calling pyocr with language option: '
'{}; {}'.format(self.language, exception)
error_message = ('Exception calling pyocr with language option: '
'{}; {}').format(self.language, exception)
if self.language not in self.languages:
error_message = '{}\nThe requested OCR language "{}" is not '
'available and needs to be installed.\n'.format(
error_message = ('{}\nThe requested OCR language "{}" is not '
'available and needs to be installed.\n').format(
error_message, self.language
)