Minor wording change
This commit is contained in:
@@ -268,6 +268,10 @@ async def download_event_file(
|
|||||||
dir_path = event_file_obj.hosted_file.directory_path
|
dir_path = event_file_obj.hosted_file.directory_path
|
||||||
subdir_path = event_file_obj.hosted_file.subdirectory_path
|
subdir_path = event_file_obj.hosted_file.subdirectory_path
|
||||||
hash_sha256 = event_file_obj.hosted_file.hash_sha256
|
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'
|
hash_filename = hash_sha256+'.file'
|
||||||
|
|
||||||
if subdir_path:
|
if subdir_path:
|
||||||
|
|||||||
Reference in New Issue
Block a user