File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -801,12 +801,16 @@ def _check_input_version_requirements(self):
801
801
# check minimum version
802
802
names = self .inputs .trait_names (** dict (min_ver = lambda t : t is not None ))
803
803
for name in names :
804
+ if not isdefined (getattr (self .inputs , name )):
805
+ continue
804
806
min_ver = str (self .inputs .traits ()[name ].min_ver )
805
807
if min_ver > version :
806
808
raise Exception ('Input %s (%s) (version %s < required %s)' %
807
809
(name , self .__class__ .__name__ , version , min_ver ))
808
810
names = self .inputs .trait_names (** dict (max_ver = lambda t : t is not None ))
809
811
for name in names :
812
+ if not isdefined (getattr (self .inputs , name )):
813
+ continue
810
814
max_ver = str (self .inputs .traits ()[name ].max_ver )
811
815
if max_ver < version :
812
816
raise Exception ('Input %s (%s) (version %s > required %s)' %
You can’t perform that action at this time.
0 commit comments