Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions frictionless/fields/__spec__/test_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
("binary", "dGVzdA==", "dGVzdA=="),
("binary", "", None),
("binary", "string", None),
("binary", "!!!!", None),
("binary", "@@@@", None),
("binary", "()()", None),
("binary", 0, None),
],
)
Expand Down
2 changes: 1 addition & 1 deletion frictionless/fields/string.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def value_reader(cell: Any):
if not isinstance(cell, str):
return None
try:
base64.b64decode(cell)
base64.b64decode(cell, validate=True)
except Exception:
return None
return cell
Expand Down