Skip to content

Commit

Permalink
Do not add None as extension in elements_datatypes
Browse files Browse the repository at this point in the history
None is not a valid extension and it seems to return this when you have a collection containing other sub-collections
  • Loading branch information
davelopez committed Sep 27, 2023
1 parent c029991 commit 4b2e2be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6689,7 +6689,8 @@ def dataset_dbkeys_and_extensions_summary(self):
dbkeys.add(dbkey)
else:
dbkeys.add(dbkey_field)
extensions.add(row.extension)
if row.extension:
extensions.add(row.extension)
self._dataset_dbkeys_and_extensions_summary = (dbkeys, extensions)
return self._dataset_dbkeys_and_extensions_summary

Expand Down

0 comments on commit 4b2e2be

Please sign in to comment.