Added error for missing path scenario

This commit is contained in:
Mark Riedesel 2014-03-01 11:43:41 -05:00
parent f47b21b8fd
commit c8fc568893

View file

@ -22,8 +22,10 @@ class PopplerController(object):
if os.path.isfile(path):
return path
raise Exception("Path not found in %s" % search)
def _load_poppler_doc(self, pdf_path):
return poppler.document_new_from_file('file://' + pdf_path, password=None)
return poppler.document_new_from_file('file://' + pdf_path, password=None)
def generate_page_images(self, pages=[], clear_page=True):