diff --git a/lib/galaxy/tools/__init__.py b/lib/galaxy/tools/__init__.py index 4439782829ae..05617e0beb4c 100644 --- a/lib/galaxy/tools/__init__.py +++ b/lib/galaxy/tools/__init__.py @@ -1665,7 +1665,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 0fc140b750bc..cf445aaf67ce 100644 --- a/lib/galaxy/tools/parameters/basic.py +++ b/lib/galaxy/tools/parameters/basic.py @@ -1403,7 +1403,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)