Skip to content

Commit

Permalink
adds except error explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
Dana authored and Dana committed Dec 14, 2022
1 parent 329e669 commit d8ff676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion physionet-django/project/modelcomponents/activeproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def check_integrity(self):
# Data Upload Agreement
try:
DataUploadAgreement.objects.get(project_id=self.id)
except DataUploadAgreement.IntegrityError:
except DataUploadAgreement.ObjectDoestNotExist:
self.integrity_errors.append('Missing required field: Data Upload Agreement')

# Metadata
Expand Down

0 comments on commit d8ff676

Please sign in to comment.