We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce82c68 commit 20b8df6Copy full SHA for 20b8df6
1 file changed
colrev/env/tei_parser.py
@@ -677,8 +677,9 @@ def _add_doi_from_pdf_if_not_available(record_dict: dict) -> None:
677
# curl -v --form input=@./thefile.pdf -H "Accept: application/x-bibtex"
678
# -d "consolidateHeader=0" localhost:8070/api/processHeaderDocument
679
def get_record_from_pdf(file_path: Path, *, add_doi_from_pdf: bool = False) -> dict:
680
+ """Get a record dict form a pdf file_path"""
681
if file_path.suffix != ".pdf":
- return
682
+ raise ValueError
683
684
record_dict: typing.Dict[str, typing.Any] = {
685
Fields.FILE: str(file_path),
0 commit comments