Skip to content

Commit 505796f

Browse files
committed
More style checker fix
Signed-off-by: mmelqin <[email protected]>
1 parent 1f2fa41 commit 505796f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

monai/deploy/operators/dicom_text_sr_writer_operator.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@ def __init__(
106106
Args:
107107
copy_tags (bool): True for copying DICOM attributes from a provided DICOMSeries.
108108
model_info (ModelInfo): Object encapsulating model creator, name, verison and UID.
109-
equipment_info (EquipmentInfo, optional): Object encapsulating info for DICOM Equipement Module. Defaults to None.
110-
custom_tags (Dict[str, str], optional): Dictionary for setting custom DICOM tags using Keywords and str values only. Defaults to None.
109+
equipment_info (EquipmentInfo, optional): Object encapsulating info for DICOM Equipement Module.
110+
Defaults to None.
111+
custom_tags (Dict[str, str], optional): Dictionary for setting custom DICOM tags using Keywords and str values only.
112+
Defaults to None.
111113
112114
Raises:
113115
ValueError: If copy_tags is true and no DICOMSeries object provided, or
@@ -154,7 +156,7 @@ def compute(self, op_input: InputContext, op_output: OutputContext, context: Exe
154156
try:
155157
file_path = op_input.get("classification_result_file")
156158
except ItemNotExistsError:
157-
raise ValueError("None of the named inputs for result can be found.")
159+
raise ValueError("None of the named inputs for result can be found.") from None
158160
# Read file, and if exception, let it bubble up
159161
with open(file_path.path, "r") as f:
160162
result_text = f.read().strip()

0 commit comments

Comments
 (0)