Skip to content

Commit

Permalink
Split up into part that actually fails
Browse files Browse the repository at this point in the history
Co-authored-by: Nicola Soranzo <[email protected]>
  • Loading branch information
mvdbeek and nsoranzo authored Apr 2, 2024
1 parent dee8278 commit 5bf204a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/galaxy/tools/parameters/dynamic_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,11 +767,13 @@ def get_user_options(self, user: User):
by_dbkey = {}
for hda in hdas:
try:
by_dbkey.update(self.hda_to_table_entries(hda, self.tool_data_table_name))
table_entries = self.hda_to_table_entries(hda, self.tool_data_table_name)
except Exception as e:
# This is a bug, `hda_to_table_entries` is not generic enough for certain loc file
# structures, such as for the dada2_species, which doesn't have a dbkey column
table_entries = {}
log.warning("Failed to read data table bundle entries: %s", e)
by_dbkey.update(table_entries)
for data_table_entry in by_dbkey.values():
field_entry = []
for column_key in self.tool_data_table.columns.keys():
Expand Down

0 comments on commit 5bf204a

Please sign in to comment.