From 793f5a9d42a4d2f5dd8cb47759c004d559758fba Mon Sep 17 00:00:00 2001 From: John Chilton Date: Mon, 5 Jan 2015 10:05:46 -0500 Subject: [PATCH] Attempt to fix bug introduced in 08f8850853d004bf8a456a147436a669. Thanks to Nicola for the bug report (https://bitbucket.org/galaxy/galaxy-central/commits/08f8850853d004bf8a456a147436a669#comment-1528754). --- lib/galaxy/tools/toolbox/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/tools/toolbox/base.py b/lib/galaxy/tools/toolbox/base.py index f73f7d9d6f3..485abb2446c 100644 --- a/lib/galaxy/tools/toolbox/base.py +++ b/lib/galaxy/tools/toolbox/base.py @@ -483,8 +483,8 @@ class AbstractToolBox( object, Dictifiable ): return[ self._tools_by_id[ tool_id ] ] return None - def has_tool( self, tool_id, exact=False ): - return self.get_tool( tool_id, exact=exact ) is not None + def has_tool( self, tool_id, tool_version=None, exact=False ): + return self.get_tool( tool_id, tool_version=tool_version, exact=exact ) is not None def get_tool_id( self, tool_id ): """ Take a tool id (potentially from a different Galaxy instance or that