Skip to content

Commit 798f314

Browse files
committed
comment
1 parent 6e8ae53 commit 798f314

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

recordprocessor/src/file_level_validation.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,6 @@ def file_level_validation(incoming_message_body: dict) -> dict:
106106
"csv_dict_reader": csv_reader,
107107
}
108108
except (InvalidHeaders, NoOperationPermissions, Exception) as error:
109-
reason = getattr(error, 'reason', None)
110-
if reason is not None:
111-
if reason == "invalid continuation byte" and encoder == "utf-8":
112-
raise InvalidEncoding(f"Error File encoding {encoder} is invalid.")
113109
logger.error("Error in file_level_validation: %s", error)
114110

115111
# NOTE: The Exception may occur before the file_id, file_key and created_at_formatted_string are assigned

0 commit comments

Comments
 (0)