You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, in most cases TraitType.clone with a new default value tries to validate that default value using self.validate(None, None, default_value). This can fail for trait types like This which need a proper object and name for correct validation, so this code executes inside a try / except Exception wrapper.
Those trait types should override clone to implement their own behaviour, and then we can remove the catch-all-exceptions logic.
The text was updated successfully, but these errors were encountered:
[From #1645]
Currently, in most cases
TraitType.clone
with a new default value tries to validate that default value usingself.validate(None, None, default_value)
. This can fail for trait types likeThis
which need a proper object and name for correct validation, so this code executes inside atry / except Exception
wrapper.Those trait types should override
clone
to implement their own behaviour, and then we can remove the catch-all-exceptions logic.The text was updated successfully, but these errors were encountered: