Minor fix for dynamically filtered datasettool parameter when no valid datasets exist.

This commit is contained in:
Daniel Blankenberg
2008-06-26 14:02:41 +00:00
parent bb59d8a00d
commit 7606f2681f
+4 -1
View File
@@ -1100,7 +1100,10 @@ class DataToolParameter( ToolParameter ):
most_recent_dataset = [None]
filter_value = None
if self.options:
filter_value = self.options.get_options( trans, context )[0][0]
try:
filter_value = self.options.get_options( trans, other_values )[0][0]
except IndexError:
pass #no valid options
def dataset_collector( datasets ):
def is_convertable( dataset ):
for target_ext in self.extensions: