summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/exceptions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/exceptions.py b/bitbake/lib/bb/exceptions.py
index 62d62cd4d8..4dd3e2cc31 100644
--- a/bitbake/lib/bb/exceptions.py
+++ b/bitbake/lib/bb/exceptions.py
@@ -32,6 +32,9 @@ class TracebackEntry(namedtuple.abc):
32def _get_frame_args(frame): 32def _get_frame_args(frame):
33 """Get the formatted arguments and class (if available) for a frame""" 33 """Get the formatted arguments and class (if available) for a frame"""
34 arginfo = inspect.getargvalues(frame) 34 arginfo = inspect.getargvalues(frame)
35 if not arginfo.args:
36 return '', None
37
35 firstarg = arginfo.args[0] 38 firstarg = arginfo.args[0]
36 if firstarg == 'self': 39 if firstarg == 'self':
37 self = arginfo.locals['self'] 40 self = arginfo.locals['self']