From 766d09766030ed10258cebe28fb297a87eb1f400 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 8 Oct 2024 13:36:25 +0100 Subject: [PATCH] bitbake: exceptions: Add hack to workaround python 3.13 failures (Bitbake rev: 95a48f6e4b2f60b7b477bac7db5bde10e10c5a05) Signed-off-by: Richard Purdie --- bitbake/lib/bb/exceptions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bitbake/lib/bb/exceptions.py b/bitbake/lib/bb/exceptions.py index acf546de1d..60643bd642 100644 --- a/bitbake/lib/bb/exceptions.py +++ b/bitbake/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