formatting according to black

This commit is contained in:
Henning Häcker 2022-03-19 14:58:41 +01:00 committed by Johann Bauer
parent a8887b211e
commit 95199bd325
2 changed files with 8 additions and 2 deletions

View File

@ -8,7 +8,10 @@ from documents.parsers import make_thumbnail_from_pdf
from documents.parsers import ParseError
from PIL import Image
Image.MAX_IMAGE_PIXELS = os.environ.get('PAPERLESS_OCR_MAX_IMAGE_PIXELS', Image.MAX_IMAGE_PIXELS)
Image.MAX_IMAGE_PIXELS = os.environ.get(
'PAPERLESS_OCR_MAX_IMAGE_PIXELS', Image.MAX_IMAGE_PIXELS
)
class NoTextFoundException(Exception):
pass

View File

@ -6,7 +6,10 @@ from PIL import Image
from PIL import ImageDraw
from PIL import ImageFont
Image.MAX_IMAGE_PIXELS = os.environ.get('PAPERLESS_OCR_MAX_IMAGE_PIXELS', Image.MAX_IMAGE_PIXELS)
Image.MAX_IMAGE_PIXELS = os.environ.get(
'PAPERLESS_OCR_MAX_IMAGE_PIXELS', Image.MAX_IMAGE_PIXELS
)
class TextDocumentParser(DocumentParser):
"""