diff --git a/lib/galaxy/tools/__init__.py b/lib/galaxy/tools/__init__.py index 4fd74096cfc7..56c7e079382c 100644 --- a/lib/galaxy/tools/__init__.py +++ b/lib/galaxy/tools/__init__.py @@ -1660,7 +1660,9 @@ def parse_param_elem(self, input_source: InputSource, enctypes, context) -> Tool # form when it changes for name in param.get_dependencies(): # Let it throw exception, but give some hint what the problem might be - assert name in context, f"Tool with id '{self.id}': Could not find dependency '{name}' of parameter '{param.name}'" + assert ( + name in context + ), f"Tool with id '{self.id}': Could not find dependency '{name}' of parameter '{param.name}'" context[name].refresh_on_change = True return param diff --git a/lib/galaxy/tools/parameters/basic.py b/lib/galaxy/tools/parameters/basic.py index ec946eeda6d5..6811a1c26073 100644 --- a/lib/galaxy/tools/parameters/basic.py +++ b/lib/galaxy/tools/parameters/basic.py @@ -1396,7 +1396,7 @@ def __init__(self, tool, input_source): if self.accept_default: self.optional = True self.data_ref = input_source.get("data_ref", None) - assert self.data_ref is not None, f'data_column parameter {self.name} requires a valid data_ref attribute' + assert self.data_ref is not None, f"data_column parameter {self.name} requires a valid data_ref attribute" self.ref_input = None # Legacy style default value specification... self.default_value = input_source.get("default_value", None)