Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

fallback when function has error handling #412

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

SigureMo
Copy link
Member

@SigureMo SigureMo commented Oct 9, 2023

因为 Python 3.11 没有对 exceptiontable 进行处理,因此当发生 breakgraph 后生成的代码里是可能包含 exceptiontable 的,且是直接从 origin code copy 的,直接 copy 的是不对的,这会导致 breakgraph 后的 resume 函数无法正常捕获 error

目前我们对这种情况直接 fallback,以确保错误能够正确捕获,在之后再实现 exceptiontable 的生成

@paddle-bot
Copy link

paddle-bot bot commented Oct 9, 2023

Thanks for your contribution!

@SigureMo SigureMo changed the title Fallback when function has error handling fallback when function has error handling Oct 9, 2023
@zrr1999 zrr1999 merged commit bcfc693 into develop Oct 10, 2023
10 checks passed
@zrr1999 zrr1999 deleted the fallback-when-function-has-error-handling branch October 10, 2023 01:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants