summaryrefslogtreecommitdiff
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/build.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index f511caeb95..4f8ac9573b 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -51,12 +51,8 @@ __builtins__['os'] = os
class FuncFailed(Exception):
def __init__(self, name, logfile = None):
self.logfile = logfile
- if logfile is None:
- self.name = None
- self.message = name
- else:
- self.name = name
- self.message = "Function '%s' failed" % name
+ self.name = name
+ self.message = "Function '%s' failed" % name
def __str__(self):
if self.logfile and os.path.exists(self.logfile):