Skip to content

Commit

Permalink
Only call update if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Apr 30, 2024
1 parent 407708f commit dbdfcb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/galaxy/model/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ def set_tags_from_list(
if flush:
with transaction(self.sa_session):
self.sa_session.commit()
item.update()
if hasattr(item, "update"):
item.update()
return item.tags

def get_tag_assoc_class(self, item_class):
Expand Down

0 comments on commit dbdfcb4

Please sign in to comment.