Skip to content

Commit

Permalink
ignore us-ascii encoding check
Browse files Browse the repository at this point in the history
Signed-off-by: Bala.FA <bala@minio.io>
  • Loading branch information
balamurugana committed Aug 17, 2024
1 parent e3e5f73 commit 8c8a868
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions minio/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,13 +349,13 @@ def normalize_key(key: str) -> str:

def to_string(value) -> str:
value = str(value)
try:
value.encode("us-ascii")
except UnicodeEncodeError as exc:
raise ValueError(
f"unsupported metadata value {value}; "
f"only US-ASCII encoded characters are supported"
) from exc
# try:
# value.encode("us-ascii")
# except UnicodeEncodeError as exc:
# raise ValueError(
# f"unsupported metadata value {value}; "
# f"only US-ASCII encoded characters are supported"
# ) from exc
return value

def normalize_value(values: str | list[str] | tuple[str]) -> list[str]:
Expand Down

0 comments on commit 8c8a868

Please sign in to comment.