From fd5b831979bd7bd16e262e453db310f56e1d7e5a Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Thu, 1 Feb 2018 12:18:01 +0000 Subject: [PATCH 1/3] Fix pytest to 3.3.2 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 96336725b..7066a9163 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,7 +17,7 @@ gunicorn==19.7.1 # For the tests factory-boy -pytest +pytest==3.3.2 # Newer versions break with pytest-sugar pytest-django pytest-sugar pytest-env From 88736ff867eed1d33166251535557507233c7669 Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Thu, 1 Feb 2018 12:37:21 +0000 Subject: [PATCH 2/3] Version bump in anticipation of release later this week --- src/paperless/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paperless/version.py b/src/paperless/version.py index 37a1329f2..09ac5f672 100644 --- a/src/paperless/version.py +++ b/src/paperless/version.py @@ -1 +1 @@ -__version__ = (1, 1, 0) +__version__ = (1, 2, 0) From ce98019b49d96110c7b1da4595dfcfb0c21916f3 Mon Sep 17 00:00:00 2001 From: Matt Date: Thu, 1 Feb 2018 10:08:57 -0500 Subject: [PATCH 3/3] Fixing error sentinel for pdftotext when the PDF has no text (scanned images). It was causing a crash previously. --- src/paperless_tesseract/parsers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paperless_tesseract/parsers.py b/src/paperless_tesseract/parsers.py index c90c9f020..43c898df5 100644 --- a/src/paperless_tesseract/parsers.py +++ b/src/paperless_tesseract/parsers.py @@ -235,6 +235,6 @@ def get_text_from_pdf(pdf_file): try: pdf = pdftotext.PDF(f) except pdftotext.Error: - return False + return "" return "\n".join(pdf)