.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user