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() builder=pyocr.builders.TextBuilder()
) )
except Exception as exception: except Exception as exception:
error_message = 'Exception calling pyocr with language option: ' error_message = ('Exception calling pyocr with language option: '
'{}; {}'.format(self.language, exception) '{}; {}').format(self.language, exception)
if self.language not in self.languages: if self.language not in self.languages:
error_message = '{}\nThe requested OCR language "{}" is not ' error_message = ('{}\nThe requested OCR language "{}" is not '
'available and needs to be installed.\n'.format( 'available and needs to be installed.\n').format(
error_message, self.language error_message, self.language
) )