Skip to content

Commit

Permalink
Component: fix capture of Parameter validation error by dot-notation set
Browse files Browse the repository at this point in the history
  • Loading branch information
kmantel committed Jan 17, 2025
1 parent e447e92 commit 781f2a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions psyneulink/core/components/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,8 @@ def setter(self, value):
f"Parameter '{p.name}' is read-only. Set at your own risk."
f' Use .parameters.{p.name}.set with override=True to force set.'
) from None
else:
raise

return property(getter).setter(setter)

Expand Down

0 comments on commit 781f2a1

Please sign in to comment.