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: |             try: | ||||||
|                 orientation = ocr.detect_orientation(f, lang=lang) |                 orientation = ocr.detect_orientation(f, lang=lang) | ||||||
|                 f = f.rotate(orientation["angle"], expand=1) |                 f = f.rotate(orientation["angle"], expand=1) | ||||||
|             except (TesseractError, OtherTesseractError): |             except (TesseractError, OtherTesseractError, KeyError): | ||||||
|                 pass |                 pass | ||||||
|         return ocr.image_to_string(f, lang=lang) |         return ocr.image_to_string(f, lang=lang) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Daniel Quinn
					Daniel Quinn