Skip to content

Commit

Permalink
chore: remove file
Browse files Browse the repository at this point in the history
  • Loading branch information
Byaidu committed Nov 22, 2024
1 parent 54c635a commit dfe75a2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pdf2zh/pdf2zh.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,7 @@ def extract_text(
doc_dual.save(f"{filename}-dual.pdf", deflate=1)
doc_zh.close()
doc_dual.close()
try: # fix (main): permission error @ https://github.com/Byaidu/PDFMathTranslate/issues/84
os.remove(f"{filename}-en.pdf")
except Exception as e:
print(f"File removal failed due to occupation / not existing, pass.\n{e}")
pass
os.remove(f"{filename}-en.pdf")

return

Expand Down

0 comments on commit dfe75a2

Please sign in to comment.