Skip to content

Commit

Permalink
fix todo
Browse files Browse the repository at this point in the history
  • Loading branch information
maximemulder committed Jan 3, 2025
1 parent 1ecaba7 commit 759f3c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/lib/imaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,10 @@ def determine_subject_info(self, dicom_archive: DbDicomArchive, scanner_id: Opti
case 'PatientName':
subject_name = dicom_archive.patient_name
case _:
print("TODO: ERROR")
exit(-1)
raise DetermineSubjectInfoError(
"Unexpected 'lookupCenterNameUsing' configuration setting, expected 'PatientName' or 'PatientID'"
f" but found '{dicom_header}'."
)

try:
subject_info = self.config_file.get_subject_info(self.db, subject_name, scanner_id)
Expand Down

0 comments on commit 759f3c0

Please sign in to comment.