We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e8ae53 commit 798f314Copy full SHA for 798f314
recordprocessor/src/file_level_validation.py
@@ -106,10 +106,6 @@ def file_level_validation(incoming_message_body: dict) -> dict:
106
"csv_dict_reader": csv_reader,
107
}
108
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.")
113
logger.error("Error in file_level_validation: %s", error)
114
115
# NOTE: The Exception may occur before the file_id, file_key and created_at_formatted_string are assigned
0 commit comments