[dynamo] aot_eager
can't process try...except
when meeting AttributeError
#153605
Labels
module: dynamo
oncall: pt2
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
🐛 Describe the bug
symptom: I know this is a very strange way of usage. When using
return xxx
which means anSyntaxError
, dynamo can correctly enter the except block. However, when usingreturn F.xxx
, which means anAttributeError
, dynamo throw this error and can't enter the except block.Error logs
eager
aot_eager:
return F.xxx
aot_eager:
return xxx
Versions
nightly20250515
cc @chauhang @penguinwu @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @amjames
The text was updated successfully, but these errors were encountered: