Skip to content

Commit

Permalink
Fix error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
lohedges committed Mar 13, 2024
1 parent 35513b2 commit 09c9e7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/somd2/config/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ def perturbable_constraint(self, perturbable_constraint):
perturbable_constraint = perturbable_constraint.lower().replace(" ", "")
if perturbable_constraint not in self._choices["perturbable_constraint"]:
raise ValueError(
f"'perturbable_constrant' not recognised. Valid constraints are: {', '.join(self._choices['constraint'])}"
f"'perturbable_constraint' not recognised. Valid constraints are: {', '.join(self._choices['perturbable_constraint'])}"
)
else:
self._perturbable_constraint = perturbable_constraint
Expand Down

0 comments on commit 09c9e7c

Please sign in to comment.