summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/bb/exceptions.py3
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']