Skip to content

Commit

Permalink
Merge pull request #5645 from ccnmtl/noteset-fallback
Browse files Browse the repository at this point in the history
Fall back to default value of False in sherd api code
  • Loading branch information
nikolas authored Dec 8, 2024
2 parents 140eb67 + 807a54c commit f7c7c44
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mediathread/djangosherd/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,14 @@ def render_one(self, request, selection, asset_key):
return self._meta.serializer.to_simple(dehydrated, None)

def in_selection_assignment_response(self, note):
return note.projectnote_set.exists()
noteset_exists = None

try:
noteset_exists = note.projectnote_set.exists()
except ValueError:
noteset_exists = False

return noteset_exists

def in_sequence_assignment_response(self, note):
# For SequenceAssignmentResponses only
Expand Down

0 comments on commit f7c7c44

Please sign in to comment.