Skip to content

Commit

Permalink
Merge pull request #1526 from guerler/fix_unvalidated_001
Browse files Browse the repository at this point in the history
[16.01] Handle unvalidated values in depth
  • Loading branch information
jmchilton committed Jan 16, 2016
2 parents a77403c + fc434d6 commit 16e0bc0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/galaxy/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2154,6 +2154,9 @@ def to_json(self, trans, kwd={}, job=None, workflow_mode=False):
def jsonify(v):
if isinstance(v, UnvalidatedValue):
v = v.value
while isinstance( v, UnvalidatedValue ):
v = v.value
return v

# check if value is numeric
isnumber = False
Expand Down

0 comments on commit 16e0bc0

Please sign in to comment.