[Buildbot-commits] [Buildbot] #2388: waterfall: exceptions.AttributeError: 'int' object has no attribute 'get'

Buildbot nobody at buildbot.net
Thu Oct 25 12:55:27 UTC 2012


#2388: waterfall:  exceptions.AttributeError: 'int' object has no attribute 'get'
---------------------+------------------------
Reporter:  oc_dhart  |       Owner:
    Type:  defect    |      Status:  new
Priority:  major     |   Milestone:  undecided
 Version:  0.8.7     |  Resolution:
Keywords:            |
---------------------+------------------------

Comment (by dustin):

 It looks like the got_revision property from that build is an integer.
 Which is weird, since you're using git.  Is this an old build, or one that
 was performed by 0.8.7?

 A temporary fix is:

 {{{
 #!patch
 diff --git a/master/buildbot/status/build.py
 b/master/buildbot/status/build.py
 index 9f55922..570eb62 100644
 --- a/master/buildbot/status/build.py
 +++ b/master/buildbot/status/build.py
 @@ -92,7 +92,7 @@ class BuildStatus(styles.Versioned,
 properties.PropertiesMixin):
          all_got_revisions = self.properties.getProperty('got_revision',
 {})
          # For backwards compatibility all_got_revisions is a string if
 codebases
          # are not used. Convert to the default internal type (dict)
 -        if isinstance(all_got_revisions, str):
 +        if isinstance(all_got_revisions, (str, int)):
              all_got_revisions = {'': all_got_revisions}
          return all_got_revisions

 }}}

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2388#comment:2>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list