Merge branch 'esclear/mayan-edms-patch-1' into merge_patch-1
This commit is contained in:
@@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user