mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-28 03:46:06 -05:00 
			
		
		
		
	Improve the unknown language error message
This commit is contained in:
		| @@ -172,8 +172,8 @@ class RasterisedDocumentParser(DocumentParser): | ||||
|                 raw_text = self._assemble_ocr_sections(imgs, middle, raw_text) | ||||
|                 return raw_text | ||||
|             raise OCRError( | ||||
|                 "The guessed language is not available in this instance of " | ||||
|                 "Tesseract." | ||||
|                 "The guessed language ({}) is not available in this instance " | ||||
|                 "of Tesseract.".format(guessed_language) | ||||
|             ) | ||||
|  | ||||
|     def _ocr(self, imgs, lang): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Quinn
					Daniel Quinn