Skip to content

Commit 55f3b3c

Browse files
committed
fix yield propagation
1 parent d19f48a commit 55f3b3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnx_diagnostic/torch_export_patches/onnx_export_errors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ def torch_export_patches(
195195
verbose=verbose,
196196
patch=patch,
197197
custom_patches=custom_patches,
198-
):
198+
) as f:
199199
try:
200-
yield
200+
yield f
201201
finally:
202202
pass
203203
elif not patch:

0 commit comments

Comments
 (0)