Skip to content

Commit

Permalink
Add warning to _marshal_image when archived is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Aug 23, 2024
1 parent d812a19 commit 74efac8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions omeroweb/webclient/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import time
import pytz
import omero
import warnings
from collections import defaultdict

from omero.rtypes import rlong, unwrap, wrap
Expand Down Expand Up @@ -553,6 +554,9 @@ def _marshal_image(
if len(row) == 6:
image_id, archived, name, owner_id, permissions, fileset_id = row
else:
# Likely this is being called by external code
warnings.warn("_marshal_image() is a 'private' function; "
"row should have 6 elements", DeprecationWarning),
image_id, name, owner_id, permissions, fileset_id = row
archived = False
image = dict()
Expand Down

0 comments on commit 74efac8

Please sign in to comment.