Skip to content

Commit

Permalink
Merge pull request #1060 from guerler/fix_assert_000
Browse files Browse the repository at this point in the history
[15.10] Fix warning statement
  • Loading branch information
martenson committed Nov 11, 2015
2 parents 5603a96 + b888645 commit c85b0d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tools/parameters/dynamic_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,8 @@ def get_dependency_names( self ):
def get_fields( self, trans, other_values ):
if self.dataset_ref_name:
dataset = other_values.get( self.dataset_ref_name, None )
assert dataset is not None, "Required dataset '%s' missing from input" % self.dataset_ref_name
if not dataset:
log.warn( "Required dataset '%s' missing from input" % self.dataset_ref_name )
return [] # no valid dataset in history
# Ensure parsing dynamic options does not consume more than a megabyte worth memory.
path = dataset.file_name
Expand Down

0 comments on commit c85b0d9

Please sign in to comment.