Minor wording change

This commit is contained in:
Scott Idem
2023-10-19 12:06:47 -04:00
parent 9faf63fcea
commit 6bc0eb86d5

View File

@@ -268,6 +268,10 @@ async def download_event_file(
dir_path = event_file_obj.hosted_file.directory_path
subdir_path = event_file_obj.hosted_file.subdirectory_path
hash_sha256 = event_file_obj.hosted_file.hash_sha256
if not hash_sha256:
log.error(f'The hash_sha256 value was not found in the database record. Event File ID: {event_file_id}')
return mk_resp(data=None, status_code=404, response=commons.response, status_message=f'The hash_sha256 value was not found in the database record. Event File ID: {event_file_id}') # Not Found
hash_filename = hash_sha256+'.file'
if subdir_path: