Minor fix

pull/2/head
Vinayak Mehta 2016-10-20 18:54:06 +05:30
parent ed44d603f5
commit 72c2a0020f
2 changed files with 2 additions and 2 deletions

View File

@ -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 = [

View File

@ -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 = []