[Buildbot-devel] buildbot-0.8.5rc1

Dustin J. Mitchell dustin at v.igoro.us
Sun Sep 4 15:11:48 UTC 2011


2011/9/4 Jean-Michel Beuken <jean-michel.beuken at uclouvain.be>:
>        self.authz.auth.master = self.master
>    exceptions.AttributeError: 'NoneType' object has no attribute 'master'

Ah, Tom just fixed that one --

commit 011dc1ec28a1eb4e79ecdea02a615abc024992cb
Author: Tom Prince <tom.prince at ualberta.net>
Date:   Sat Sep 3 18:42:18 2011 -0400

    WebStatus: allow not specifying any auth database.

diff --git a/master/buildbot/status/web/baseweb.py
b/master/buildbot/status/web/baseweb.py
index 38b990e..e0b4d62 100644
--- a/master/buildbot/status/web/baseweb.py
+++ b/master/buildbot/status/web/baseweb.py
@@ -378,7 +378,8 @@ class WebStatus(service.MultiService):
         self.master = parent

         # set master in IAuth instance
-        self.authz.auth.master = self.master
+        if self.authz.auth:
+            self.authz.auth.master = self.master

         def either(a,b): # a if a else b for py2.4
             if a:




More information about the devel mailing list