Skip to content

Commit c0f9ea7

Browse files
authored
Fix check for scalar binary result (#244)
1 parent 55b3218 commit c0f9ea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

h5pyd/_hl/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ def __getitem__(self, args, new_dtype=None):
10221022
req = "/datasets/" + self.id.uuid + "/value"
10231023
rsp = self.GET(req, format="binary")
10241024

1025-
if isinstance(rsp, bytes):
1025+
if type(rsp) in (bytes, bytearray):
10261026
# got binary response
10271027
self.log.info("got binary response for scalar selection")
10281028
# arr = numpy.frombuffer(rsp, dtype=new_dtype)

0 commit comments

Comments
 (0)