Skip to content

Commit e3a7e5f

Browse files
committed
Fix Exports V2 streamable interface for latin characters
1 parent 44ee624 commit e3a7e5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labelbox/schema/export_task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,10 @@ def _get_file_content(
223223
response = requests.get(file_info.file, timeout=30)
224224
response.raise_for_status()
225225
assert len(
226-
response.text
226+
response.content
227227
) == file_info.offsets.end - file_info.offsets.start + 1, (
228228
f"expected {file_info.offsets.end - file_info.offsets.start + 1} bytes, "
229-
f"got {len(response.text)} bytes")
229+
f"got {len(response.content)} bytes")
230230
return file_info, response.text
231231

232232

0 commit comments

Comments
 (0)