Skip to content

Commit

Permalink
Check filter function before adding it on initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Dec 1, 2017
1 parent bc24621 commit 39bf781
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/galaxy/tools/toolbox/filters/__init__.py
Expand Up @@ -56,7 +56,8 @@ def __init_filters(self, key, filters, toolbox_filters, validate=None):
for filter in filters:
if validate is None or filter in validate or filter in self.default_filters:
filter_function = self.build_filter_function(filter)
toolbox_filters[key].append(filter_function)
if filter_function is not None:
toolbox_filters[key].append(filter_function)
else:
log.warning("Refusing to load %s filter '%s' which is not defined in config", key, filter)
return toolbox_filters
Expand Down

0 comments on commit 39bf781

Please sign in to comment.