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 | |
parent | 3fd34462ed6249cbcd52ae1556a3fac06d88f999 (diff) | |
download | poky-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>
-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): | |||
32 | def _get_frame_args(frame): | 32 | def _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'] |