Skip to content

Commit

Permalink
Raise exception if persisting HDA will null file_size
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Oct 15, 2023
1 parent 6659840 commit 1f79be7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/galaxy/model/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ def versioned_objects_strict(iter):
if not obj.history and not obj.history_id:
raise Exception(f"HistoryDatsetAssociation {obj} without history detected, this is not valid")
elif not obj.hid:
raise Exception(f"HistoryDatsetAssociation {obj} without has no hid, this is not valid")
raise Exception(f"HistoryDatsetAssociation {obj} without hid, this is not valid")
elif obj.dataset.file_size is None:
raise Exception(f"HistoryDatsetAssociation {obj} with null file size, this is not valid")
yield obj


Expand Down

0 comments on commit 1f79be7

Please sign in to comment.