Skip to content

Commit

Permalink
fix more linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Coleman committed Jun 20, 2024
1 parent 90ff917 commit 7601304
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mirrulations-extractor/src/mirrextractor/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ def update_stats():
.make_attachment_save_path(complete_path)
if not os.path.isfile(output_path):
# Write an empty file. The extract_text method sometimes
# fails with an out-of-memory error if the file is too
# large, and a restart would try again. This ensures
# that the extraction is not attempted again when the
# fails with an out-of-memory error if the file is too
# large, and a restart would try again. This ensures
# that the extraction is not attempted again when the
# extractor process is restarted (by Docker).
with open(output_path, 'w') as f:
with open(output_path, 'w') as f:
pass
start_time = time.time()
Extractor.extract_text(complete_path, output_path)
Expand Down

0 comments on commit 7601304

Please sign in to comment.