This commit is contained in:
Ross
2022-04-13 19:49:53 +01:00
parent 28c1b95293
commit 92dec690b7
+2 -2
View File
@@ -38,13 +38,13 @@ class Command(BaseCommand):
# TODO rewrite
try:
if code in ds.PatientID.lower():
self.stdout.write(self.style.WARNING(f"Identifiable dicom {file}"))
self.stdout.write(self.style.WARNING(f"Identifiable dicom [{ds.PatientID.lower()}] {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"Error parsing {file}"))
self.stdout.write(self.style.WARNING(f"Error parsing [{ds.AccessionNumber.lower()}] {file}"))
except AttributeError:
pass