首页 > Web开发 > 详细

TypeError: 'NoneType' object has no attribute '__getitem__'

时间:2014-12-19 00:26:40      阅读:2423      评论:0      收藏:0      [点我收藏+]

 

Buildbot版本:(0.8.10)

Bug:TypeError: ‘NoneType‘ object has no attribute ‘__getitem__‘

参考页面:http://trac.buildbot.net/ticket/3107?cversion=0&cnum_hist=3

 

修改文件slaves.py中出错部分的代码为

 

1         try:
2             max_builds = int(request.args.get(numbuilds, [10])[0])
3         except (TypeError, ValueError):
4             max_builds = 10

 

TypeError: 'NoneType' object has no attribute '__getitem__'

原文:http://www.cnblogs.com/Thriving-Heart/p/4172892.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!