This commit is contained in:
Ross
2023-12-26 17:47:01 +00:00
parent 337e73c331
commit 67942f147a
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -194,6 +194,7 @@ def get_image_hash(img, hash_type="blake3", direct_pixel_data=True) -> (str, boo
# Random error catching is bad
except (pydicom.errors.InvalidDicomError, TypeError) as e:
print("dicom error", img)
print(e)
try: # This is horrible (but needed for current unit tests)
# (we use a temporary file that breaks here)
img.file.open()