Skip to content

Commit

Permalink
⏪️ Do not raise on property setter
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Oct 27, 2023
1 parent 0126143 commit badfe84
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/openforms/submissions/models/submission_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ def is_applicable(self) -> bool:

@is_applicable.setter
def is_applicable(self, value: bool) -> None:
if not isinstance(value, bool):
raise ValueError(f"'is_applicable' expects a boolean value, got {value}")
self._is_applicable = value

def reset(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,3 @@ def test_step_set_applicable(self):
self.assertTrue(submission_step.is_applicable)
submission_step.is_applicable = False
self.assertFalse(submission_step.is_applicable)
with self.assertRaises(ValueError):
submission_step.is_applicable = None

0 comments on commit badfe84

Please sign in to comment.