diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-06-03 14:29:44 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-08 20:38:25 +0100 |
commit | 0f74a38ffdaa409fa1dfbfa2a54dbac9df9aba31 (patch) | |
tree | 4eae9eca4927fcbeb2ae01978b38dcdb5e47600a /bitbake/lib | |
parent | 3fd34462ed6249cbcd52ae1556a3fac06d88f999 (diff) | |
download | openembedded-core-contrib-0f74a38ffdaa409fa1dfbfa2a54dbac9df9aba31.tar.gz |
bb.exceptions: don't choke on frames without arguments
(Bitbake rev: c9bb37e588ee7ee95eca798b0eae57bad68e8caf)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/exceptions.py | 3 |
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): 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'] |