summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/exceptions.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/bitbake/lib/bb/exceptions.py b/bitbake/lib/bb/exceptions.py
index 4dd3e2cc31..f182c8fd62 100644
--- a/bitbake/lib/bb/exceptions.py
+++ b/bitbake/lib/bb/exceptions.py
@@ -32,7 +32,14 @@ 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: 35
36 try:
37 if not arginfo.args:
38 return '', None
39 # There have been reports from the field of python 2.6 which doesn't
40 # return a namedtuple here but simply a tuple so fallback gracefully if
41 # args isn't present.
42 except AttributeError:
36 return '', None 43 return '', None
37 44
38 firstarg = arginfo.args[0] 45 firstarg = arginfo.args[0]