diff --git a/mayan/apps/ocr/backends/pyocr.py b/mayan/apps/ocr/backends/pyocr.py index baffdf7d0c..eff1936064 100644 --- a/mayan/apps/ocr/backends/pyocr.py +++ b/mayan/apps/ocr/backends/pyocr.py @@ -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 )