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,6 +22,8 @@ class PopplerController(object):
if os.path.isfile(path): if os.path.isfile(path):
return path return path
raise Exception("Path not found in %s" % search)
def _load_poppler_doc(self, pdf_path): 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)