[Buildbot] #3182: MailNotifier throws exceptions.AttributeError: 'NoneType' object has no attribute 'subscribe'

Buildbot trac trac at buildbot.net
Thu Feb 5 07:43:53 UTC 2015


#3182: MailNotifier throws exceptions.AttributeError: 'NoneType' object has no
attribute 'subscribe'
----------------------+-----------------------
Reporter:  daniel@…   |      Owner:
    Type:  undecided  |     Status:  new
Priority:  major      |  Milestone:  undecided
 Version:  master     |   Keywords:  mail, osx
----------------------+-----------------------
 I get the following exception when using MailNotifier:


 {{{
           File
 "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/internet/defer.py",
 line 1155, in gotResult
             _inlineCallbacks(r, g, deferred)
           File
 "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/internet/defer.py",
 line 1099, in _inlineCallbacks
             result = g.send(result)
           File "/Library/Python/2.7/site-
 packages/buildbot-0.9.0-py2.7.egg/buildbot/util/service.py", line 43, in
 reconfigServiceWithBuildbotConfig
             yield svc.reconfigServiceWithBuildbotConfig(new_config)
           File
 "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/internet/defer.py",
 line 1237, in unwindGenerator
             return _inlineCallbacks(None, gen, Deferred())
         --- <exception caught here> ---
           File
 "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/internet/defer.py",
 line 1099, in _inlineCallbacks
             result = g.send(result)
           File "/Library/Python/2.7/site-
 packages/buildbot-0.9.0-py2.7.egg/buildbot/status/master.py", line 92, in
 reconfigServiceWithBuildbotConfig
             yield sr.setServiceParent(self)
           File "/Library/Python/2.7/site-
 packages/buildbot-0.9.0-py2.7.egg/buildbot/status/mail.py", line 469, in
 setServiceParent
             self.master_status.subscribe(self)
         exceptions.AttributeError: 'NoneType' object has no attribute
 'subscribe'
 }}}

 Repro steps:

 1. buildbot create-master temp-master
 2. mv temp-master/temp-master.cfg.sample temp-master/master.cfg
 3. Change the cfg file to include the following lines:

 {{{
 from buildbot.plugins import status
 m = status.MailNotifier(fromaddr="buildbot at localhost",
 extraRecipients=["builds at lists.example.com"], sendToInterestedUsers=False)

 c['status'] = []
 c['status'].append(m)
 }}}

 4. buildbot start temp-master

--
Ticket URL: <http://trac.buildbot.net/ticket/3182>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the bugs mailing list