[Buildbot] #3107: Build slave page fails with “TypeError: 'NoneType' object has no attribute '__getitem__'”

Buildbot trac trac at buildbot.net
Thu Dec 11 08:08:34 UTC 2014


#3107: Build slave page fails with “TypeError: 'NoneType' object has no attribute
'__getitem__'”
---------------------+-----------------------
Reporter:  ims       |      Owner:
    Type:  defect    |     Status:  new
Priority:  critical  |  Milestone:  undecided
 Version:  0.8.10    |   Keywords:
---------------------+-----------------------
 Since version 0.8.10 the links to individual build slaves from
 `/buildslaves` to `/buildslaves/{$name}` no longer work. An exception is
 raised:

 {{{
 …/buildbot/status/web/slaves.py:117 in content
 116        try:
 117            max_builds = int(request.args.get('numbuilds')[0])
 118        except ValueError:
 exceptions.TypeError: 'NoneType' object has no attribute '__getitem__'
 }}}

 The catch clause should be `except (ValueError, TypeError):`. The
 offending commit is 388e868cc482e. It changed other places too which
 likely need similar fixes.

 A work-around is to add `?numbuilds=10` to the URL.

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


More information about the bugs mailing list