diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2022-03-07 12:23:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-07 12:23:11 (GMT) |
commit | 3b3be05a164da43f201e35b6dafbc840993a4d18 (patch) | |
tree | 4880ca6ce2434a95973e2e35c323074d932851c9 /Lib/test/test_codeccallbacks.py | |
parent | 5c06dba21b9767127f042b8a168703f06338c3f4 (diff) | |
download | cpython-3b3be05a164da43f201e35b6dafbc840993a4d18.zip cpython-3b3be05a164da43f201e35b6dafbc840993a4d18.tar.gz cpython-3b3be05a164da43f201e35b6dafbc840993a4d18.tar.bz2 |
bpo-46940: Don't override existing AttributeError suggestion information (GH-31710)
When an exception is created in a nested call to PyObject_GetAttr, any
external calls will override the context information of the
AttributeError that we have already placed in the most internal call.
This will cause the suggestions we create to nor work properly as the
attribute name and object that we will be using are the incorrect ones.
To avoid this, we need to check first if these attributes are already
set and bail out if that's the case.
Diffstat (limited to 'Lib/test/test_codeccallbacks.py')
0 files changed, 0 insertions, 0 deletions