Skip to content

Commit

Permalink
Merge PR #609 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by alexis-via
  • Loading branch information
OCA-git-bot committed Jan 17, 2025
2 parents 047a6b2 + 78ba700 commit 1b19bb6
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions l10n_fr_das2/models/l10n_fr_das2.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,16 +728,8 @@ def generate_file_and_attach(self, encryption="prod"):
)

file_content = self._prepare_file()
try:
file_content_encoded = file_content.encode("latin1")
except UnicodeEncodeError as e:
raise UserError(
_(
"A special character in the DAS2 file is not in the latin1 "
"table. Please locate this special character and replace "
"it by a standard character and try again."
)
) from e
# In 2025, they made it clear (at last !) that the file must be in utf-8
file_content_encoded = file_content.encode("utf-8")

try:
file_bytes_result, filename = generate_file(
Expand Down

0 comments on commit 1b19bb6

Please sign in to comment.