Skip to content

Commit

Permalink
Merge 6a76268 into e4b0751
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrv committed Jun 2, 2023
2 parents e4b0751 + 6a76268 commit ad71238
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyiron_base/storage/has_stored_traits.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ def lock(self):
"""Recursively make all traits read-only."""
self._read_only = True
for sub in self.trait_values().values():
if not isinstance(sub, HasStoredTraits): continue
try:
sub.lock()
except AttributeError:
Expand Down

0 comments on commit ad71238

Please sign in to comment.