You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function pdf2doi_singlefile does not close the opened pdf file. The close file statement is not executed due to return statements on successful identifier finding.
I merged the contribution from DuzaBF, and made some additional changes to the code to make sure that a result dictionary with the key 'identifier' is always returned. This should fix this bug.
Please download the version 1.3 of pdf2doi :) I will also add the requirement in the requirements.txt of pdfrenamer
Hi,
The function
pdf2doi_singlefile
does not close the opened pdf file. The close file statement is not executed due to return statements on successful identifier finding.pdf2doi/pdf2doi/main.py
Lines 161 to 165 in d8e7117
This causes the issue with
pdf-rename
on Windows. The renaming attempt results in access error as file is opened by the script itself.I'll make PR shortly to fix this.
The text was updated successfully, but these errors were encountered: