Skip to content

Commit

Permalink
Fix check for scalar binary result
Browse files Browse the repository at this point in the history
  • Loading branch information
rho-novatron committed Dec 17, 2024
1 parent 16e3067 commit e7a3046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h5pyd/_hl/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ def __getitem__(self, args, new_dtype=None):
req = "/datasets/" + self.id.uuid + "/value"
rsp = self.GET(req, format="binary")

if isinstance(rsp, bytes):
if type(rsp) in (bytes, bytearray):
# got binary response
self.log.info("got binary response for scalar selection")
# arr = numpy.frombuffer(rsp, dtype=new_dtype)
Expand Down

0 comments on commit e7a3046

Please sign in to comment.