Show More
@@ -819,7 +819,7 b' class Type(ClassBasedTraitType):' | |||||
819 | """Validates that the value is a valid object instance.""" |
|
819 | """Validates that the value is a valid object instance.""" | |
820 | if isinstance(value, py3compat.string_types): |
|
820 | if isinstance(value, py3compat.string_types): | |
821 | try: |
|
821 | try: | |
822 |
value = |
|
822 | value = self._resolve_string(value) | |
823 | except ImportError: |
|
823 | except ImportError: | |
824 | raise TraitError("The '%s' trait of %s instance must be a type, but " |
|
824 | raise TraitError("The '%s' trait of %s instance must be a type, but " | |
825 | "%r could not be imported" % (self.name, obj, value)) |
|
825 | "%r could not be imported" % (self.name, obj, value)) |
General Comments 0
You need to be logged in to leave comments.
Login now