diff --git a/requirements.txt b/requirements.txt index 9df571328..04c8f9a7c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,7 +18,7 @@ pdftotext>=2.0.1 # For the tests factory-boy -pytest +pytest==3.3.2 # Newer versions break with pytest-sugar pytest-django pytest-sugar pytest-env 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) 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)