Skip to content

Commit

Permalink
Correct sense of docx_filename checking
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-dxw committed Mar 28, 2024
1 parent 6410251 commit f11004c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ds-caselaw-ingester/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,9 @@ def process_message(message):

# Store docx and rename
docx_filename = extract_docx_filename(metadata, consignment_reference)
print(f"extracted docx filename is {docx_filename!r}")
# The docx_filename is None for files which have been reparsed.
if docx_filename is None:
if docx_filename is not None:
copy_file(
tar,
f"{consignment_reference}/{docx_filename}",
Expand Down

0 comments on commit f11004c

Please sign in to comment.