diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-06-03 14:29:44 -0400 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2011-06-03 14:29:44 -0400 |
commit | c9bb37e588ee7ee95eca798b0eae57bad68e8caf (patch) | |
tree | 24c4b3917e0340a90b5b9b19446f0f6502991b4a /lib/bb/exceptions.py | |
parent | ec8a5a495b72e061a1e8d7c7449afb26581872c0 (diff) | |
download | bitbake-c9bb37e588ee7ee95eca798b0eae57bad68e8caf.tar.gz |
bb.exceptions: don't choke on frames without arguments
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/exceptions.py')
-rw-r--r-- | lib/bb/exceptions.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/exceptions.py b/lib/bb/exceptions.py index 62d62cd4d..4dd3e2cc3 100644 --- a/lib/bb/exceptions.py +++ b/lib/bb/exceptions.py @@ -32,6 +32,9 @@ class TracebackEntry(namedtuple.abc): def _get_frame_args(frame): """Get the formatted arguments and class (if available) for a frame""" arginfo = inspect.getargvalues(frame) + if not arginfo.args: + return '', None + firstarg = arginfo.args[0] if firstarg == 'self': self = arginfo.locals['self'] |