Added error for missing path scenario
This commit is contained in:
parent
f47b21b8fd
commit
c8fc568893
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue