From 72c2a0020f38c848979e7324f502d737a599135c Mon Sep 17 00:00:00 2001 From: Vinayak Mehta Date: Thu, 20 Oct 2016 18:54:06 +0530 Subject: [PATCH] Minor fix --- camelot/lattice.py | 2 +- camelot/stream.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/camelot/lattice.py b/camelot/lattice.py index da8941a..52501e2 100644 --- a/camelot/lattice.py +++ b/camelot/lattice.py @@ -212,7 +212,7 @@ class Lattice: if not ltchar: logging.warning("{0}: PDF has no text. It may be an image.".format( os.path.basename(bname))) - return None + return {os.path.basename(bname): None} imagename = ''.join([bname, '.png']) gs_call = [ diff --git a/camelot/stream.py b/camelot/stream.py index ddd0976..6550066 100644 --- a/camelot/stream.py +++ b/camelot/stream.py @@ -307,7 +307,7 @@ class Stream: if not lttextlh: logging.warning("{0}: PDF has no text. It may be an image.".format( os.path.basename(bname))) - return None + return {os.path.basename(bname): None} if self.debug: self.debug_text = []