Skip to content

Commit

Permalink
Fix __bool__ for empty optional multidata parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Jun 12, 2018
1 parent 0a29e53 commit 6f213b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tools/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def __str__(self):

def __bool__(self):
# Fail `#if $param` checks in cheetah if optional input is not provided
return len(self) > 0
return any(self)
__nonzero__ = __bool__


Expand Down

0 comments on commit 6f213b3

Please sign in to comment.