Skip to content

Commit

Permalink
Fix warning statement
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Nov 10, 2015
1 parent 3b8edf6 commit b888645
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 b888645

Please sign in to comment.