Skip to content

Commit

Permalink
Merge branch 'release/0.3.38' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Jan 24, 2024
2 parents 7ddb4e9 + 7d4fb42 commit 8025ea2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions edc_registration/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def get_registered_subject(
except ObjectDoesNotExist:
registered_subject = None
if raise_exception and not registered_subject:
# the subject consent usually creates the registered subject
# instance. Check the model is declared with
# UpdatesOrCreatesRegistrationModelMixin
raise RegisteredSubjectDoesNotExist(
"Unknown subject. "
f"Searched `{get_registered_subject_model_cls()._meta.label_lower}`. "
Expand Down

0 comments on commit 8025ea2

Please sign in to comment.