diff --git a/generic/management/commands/checkdicoms.py b/generic/management/commands/checkdicoms.py index 047a6692..d755f6ce 100644 --- a/generic/management/commands/checkdicoms.py +++ b/generic/management/commands/checkdicoms.py @@ -40,10 +40,11 @@ class Command(BaseCommand): if code in ds.PatientID.lower(): self.stdout.write(self.style.WARNING(f"Identifiable dicom {file}")) except AttributeError: + self.stdout.write(self.style.WARNING(f"Error parsing {file}")) pass try: if code in ds.AccessionNumber.lower(): - self.stdout.write(self.style.WARNING(f"Identifiable dicom {file}")) + self.stdout.write(self.style.WARNING(f"Error parsing {file}")) except AttributeError: pass