Show More
@@ -1069,7 +1069,9 b' class Union(TraitType):' | |||||
1069 | def validate(self, obj, value): |
|
1069 | def validate(self, obj, value): | |
1070 | for trait_type in self.trait_types: |
|
1070 | for trait_type in self.trait_types: | |
1071 | try: |
|
1071 | try: | |
1072 |
|
|
1072 | v = trait_type._validate(obj, value) | |
|
1073 | self._metadata = trait_type._metadata | |||
|
1074 | return v | |||
1073 | except TraitError: |
|
1075 | except TraitError: | |
1074 | continue |
|
1076 | continue | |
1075 | self.error(obj, value) |
|
1077 | self.error(obj, value) |
General Comments 0
You need to be logged in to leave comments.
Login now