Skip to content

Commit ab67938

Browse files
committed
wado-rs now re-codes OSError to DICOMTrolleyError. Extends docstrings Fixes #58
1 parent e07deb7 commit ab67938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dicomtrolley/wado_rs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def parse(self, response) -> Iterator[Dataset]:
174174
) from e
175175
except OSError as e: # pydicom might validly raise this on bad DICOM
176176
raise DICOMTrolleyError(
177-
"Error parsing response as DICOM"
177+
f"Error parsing response as DICOM: {e}"
178178
) from e
179179

180180
@staticmethod

0 commit comments

Comments
 (0)