Tolto un controllo inutile sul nome che finisce con .pdf

master
Davide Borgonovo 2022-03-18 14:11:44 +01:00
parent 644bbe7c6d
commit 0581b34525
1 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@ class PDFHandler(object):
if is_url(filepath): if is_url(filepath):
filepath = download_url(filepath) filepath = download_url(filepath)
self.filepath = filepath self.filepath = filepath
if not filepath.lower().endswith(".pdf"): # if not filepath.lower().endswith(".pdf"):
raise NotImplementedError("File format not supported") # raise NotImplementedError("File format not supported")
if password is None: if password is None:
self.password = "" self.password = ""