This commit is contained in:
Ross
2021-11-21 10:34:19 +00:00
parent 4c3cb8c4f5
commit a927a05cf9
+1 -1
View File
@@ -459,7 +459,7 @@ class RapidImage(models.Model):
try:
hash = ",".join(pydicom.dcmread(self.image).pixel_array.tostring())
self.is_dicom = True
except pydicom.errors.InvalidImageFormatError:
except pydicom.errors.InvalidDicomError:
hash = hashlib.md5(self.image).hexdigest()
self.image_md5_hash = hash