diff --git a/src/documents/views.py b/src/documents/views.py index d886324ae..f5ddd88ee 100755 --- a/src/documents/views.py +++ b/src/documents/views.py @@ -639,7 +639,10 @@ class BulkDownloadView(APIView): content = serializer.validated_data.get('content') os.makedirs(settings.SCRATCH_DIR, exist_ok=True) - temp = tempfile.NamedTemporaryFile(dir=settings.SCRATCH_DIR, suffix="-compressed-archive", delete=False) + temp = tempfile.NamedTemporaryFile( + dir=settings.SCRATCH_DIR, + suffix="-compressed-archive", + delete=False) if content == 'both': strategy_class = OriginalAndArchiveStrategy diff --git a/src/paperless_tesseract/parsers.py b/src/paperless_tesseract/parsers.py index dac364447..883402414 100644 --- a/src/paperless_tesseract/parsers.py +++ b/src/paperless_tesseract/parsers.py @@ -300,4 +300,3 @@ def strip_excess_whitespace(text): # TODO: this needs a rework return no_trailing_whitespace.strip() -