Skip to content

Commit

Permalink
omero.util.pydict_text_io.load: restore support for bytes input
Browse files Browse the repository at this point in the history
  • Loading branch information
sbesson committed Jan 20, 2024
1 parent e3f34f1 commit ba20d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/omero/util/pydict_text_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def load(fileobj, filetype=None, single=True, session=None):
:param session: If fileobj is an OriginalFile:ID a valid session is required
"""

if not isinstance(fileobj, str):
if not isinstance(fileobj, (str, bytes)):
raise Exception(
'Invalid type: fileobj must be a filename or json string')

Expand Down

0 comments on commit ba20d6e

Please sign in to comment.