From a927a05cf925b226544def3c4c7d34fd40c7f387 Mon Sep 17 00:00:00 2001 From: Ross Date: Sun, 21 Nov 2021 10:34:19 +0000 Subject: [PATCH] . --- rapids/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rapids/models.py b/rapids/models.py index 01e535a4..0a1fc425 100644 --- a/rapids/models.py +++ b/rapids/models.py @@ -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