]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake/build.py: Rename message field to avoid DeprecationWarning: BaseException...
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 17 Jan 2011 15:52:06 +0000 (15:52 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 17 Jan 2011 15:52:06 +0000 (15:52 +0000)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/build.py

index 0376cc93b8cdbaedea8abaf86621655a256e9260..74295dd4546500237c1c77319e528435b7653422 100644 (file)
@@ -51,14 +51,14 @@ class FuncFailed(Exception):
     def __init__(self, name, logfile = None):
         self.logfile = logfile
         self.name = name
-        self.message = "Function '%s' failed" % name
+        self.msg = "Function '%s' failed" % name
 
     def __str__(self):
         if self.logfile and os.path.exists(self.logfile):
             msg = ("%s (see %s for further information)" %
-                   (self.message, self.logfile))
+                   (self.msg, self.logfile))
         else:
-            msg = self.message
+            msg = self.msg
         return msg
 
 class TaskBase(event.Event):