Skip to content

Commit 7e9784d

Browse files
committed
fix only raise(RuntimeError)
1 parent c8aabde commit 7e9784d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/jit/sot/opcode_translator/executor/opcode_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2166,7 +2166,7 @@ def raise_sot_captured_exception(
21662166
exc_type, self._graph, DummyTracker(list(args))
21672167
).call_function(*args, **kwargs)
21682168
self.exception_stack.set_current_exception(exc, self._graph)
2169-
raise SotCapturedExceptionFactory.get(exc_type)
2169+
raise SotCapturedExceptionFactory.create(exc.get_py_value())
21702170

21712171

21722172
class OpcodeExecutor(OpcodeExecutorBase):

0 commit comments

Comments
 (0)