aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/utils.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-09 15:09:45 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-10 13:31:18 +0000
commit918bec86bc8ee94feb82380ff410d9fdcbe9e720 (patch)
tree9036bb31b96a781a48bc8f64bf30b06760a495fc /lib/bb/utils.py
parent86e78e0ca7aa5452411f35239942ecee3d8824ec (diff)
downloadbitbake-918bec86bc8ee94feb82380ff410d9fdcbe9e720.tar.gz
utils: Drop datastore function inspection during exception
When we use functions from the data store, they now have correct line number and filename information. This function would attempt to correct line numbers which doesn't need correcting, leading to misleading messages to the user. Therefore remove this code as being obsoleted. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/utils.py')
-rw-r--r--lib/bb/utils.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/bb/utils.py b/lib/bb/utils.py
index 5af80f5c7..82579b8a1 100644
--- a/lib/bb/utils.py
+++ b/lib/bb/utils.py
@@ -363,15 +363,6 @@ def _print_exception(t, value, tb, realfile, text, context):
error.extend(_print_trace(text, tbextract[level+1][1]))
except:
error.append(tbformat[level+1])
- elif "d" in context and tbextract[level+1][2]:
- # Try and find the code in the datastore based on the functionname
- d = context["d"]
- functionname = tbextract[level+1][2]
- text = d.getVar(functionname, True)
- if text:
- error.extend(_print_trace(text.split('\n'), tbextract[level+1][1]))
- else:
- error.append(tbformat[level+1])
else:
error.append(tbformat[level+1])
nexttb = tb.tb_next