mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Account for KeyError problem in #345
This commit is contained in:
		| @@ -285,7 +285,7 @@ def image_to_string(args): | ||||
|             try: | ||||
|                 orientation = ocr.detect_orientation(f, lang=lang) | ||||
|                 f = f.rotate(orientation["angle"], expand=1) | ||||
|             except (TesseractError, OtherTesseractError, KeyError): | ||||
|             except (TesseractError, OtherTesseractError, AttributeError): | ||||
|                 pass | ||||
|         return ocr.image_to_string(f, lang=lang) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Quinn
					Daniel Quinn