Skip to content

Commit 6d63898

Browse files
thomathoma
authored andcommitted
#412 'replace' the encoding error
* We will replace the unicode character to avoid error throwing as we have already mentioned in the SPEC that unicode is not supported.
1 parent c96723c commit 6d63898

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attributecode/transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def read_csv_rows(location):
259259
"""
260260
Yield rows (as a list of values) from a CSV file at `location`.
261261
"""
262-
with io.open(location, encoding='utf-8') as csvfile:
262+
with io.open(location, encoding='utf-8', errors='replace') as csvfile:
263263
reader = csv.reader(csvfile)
264264
for row in reader:
265265
yield row

0 commit comments

Comments
 (0)