Skip to content

Commit

Permalink
fix: compare ext with leading '.' (#7458)
Browse files Browse the repository at this point in the history
This allows an exception to be raised if submission
files are missing, leading to a server error. That's
not pretty, but is better than ignoring the fail.
  • Loading branch information
jennifer-richards committed May 24, 2024
1 parent 7f00d75 commit a1a3097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ietf/submit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ def move_files_to_repository(submission):
os.link(dest, ftp_dest)
elif dest.exists():
log.log("Intended to move '%s' to '%s', but found source missing while destination exists.")
elif ext in submission.file_types.split(','):
elif f".{ext}" in submission.file_types.split(','):
raise ValueError("Intended to move '%s' to '%s', but found source and destination missing.")


Expand Down

0 comments on commit a1a3097

Please sign in to comment.