summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/exceptions.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/bitbake/lib/bb/exceptions.py b/bitbake/lib/bb/exceptions.py
index 801db9c82f..acf546de1d 100644
--- a/bitbake/lib/bb/exceptions.py
+++ b/bitbake/lib/bb/exceptions.py
@@ -38,14 +38,8 @@ def _get_frame_args(frame):
38 """Get the formatted arguments and class (if available) for a frame""" 38 """Get the formatted arguments and class (if available) for a frame"""
39 arginfo = inspect.getargvalues(frame) 39 arginfo = inspect.getargvalues(frame)
40 40
41 try: 41 if not arginfo.args:
42 if not arginfo.args:
43 return '', None 42 return '', None
44 # There have been reports from the field of python 2.6 which doesn't
45 # return a namedtuple here but simply a tuple so fallback gracefully if
46 # args isn't present.
47 except AttributeError:
48 return '', None
49 43
50 firstarg = arginfo.args[0] 44 firstarg = arginfo.args[0]
51 if firstarg == 'self': 45 if firstarg == 'self':