| Message ID | 20241008123627.252307-6-richard.purdie@linuxfoundation.org |
|---|---|
| State | Accepted, archived |
| Commit | 95a48f6e4b2f60b7b477bac7db5bde10e10c5a05 |
| Headers | show |
| Series | [1/8] COW: Fix hardcoded magic numbers and work with python 3.13 | expand |
diff --git a/lib/bb/exceptions.py b/lib/bb/exceptions.py index acf546de1d..60643bd642 100644 --- a/lib/bb/exceptions.py +++ b/lib/bb/exceptions.py @@ -47,7 +47,11 @@ def _get_frame_args(frame): cls = self.__class__.__name__ arginfo.args.pop(0) - del arginfo.locals['self'] + try: + del arginfo.locals['self'] + except TypeError: + # FIXME - python 3.13 FrameLocalsProxy can't be modified + pass else: cls = None
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> --- lib/bb/exceptions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)