[dynamo] Fix handling of kwargs in exception constructor (#163390)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/163390
Approved by: https://github.com/guilhermeleobas
This commit is contained in:
Rob Timpe
2025-09-24 18:37:30 +00:00
committed by PyTorch MergeBot
parent bc8680c298
commit 2b1236de61
4 changed files with 30 additions and 3 deletions

View File

@ -989,7 +989,7 @@ class BuiltinVariable(VariableTracker):
hints=[*graph_break_hints.SUPPORTABLE],
)
return variables.ExceptionVariable(fn, args, **kwargs)
return variables.ExceptionVariable(fn, args, kwargs)
return create_exception_class_object