http://www.v2ex.com/t/10134 存在 BUG?

2011 年 3 月 21 日
 no2x
访问 http://www.v2ex.com/t/10134 无法打开,出现提示:

Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 515, in __call__
handler.get(*groups)
File "/base/data/home/apps/v2ex/1.349072581769398658/topic.py", line 413, in get
if topic.member_num == member.num:
AttributeError: 'NoneType' object has no attribute 'member_num'
5933 次点击
所在节点    反馈
7 条回复
d_yang
2011 年 3 月 21 日
看似不存在这个topic了。
Livid
2011 年 3 月 21 日
有些时候,当一个主题被删除,缓存又没有马上过期时,就会出现这样的情况。
no2x
2011 年 3 月 21 日
@Livid 那是否应该考虑给个提示页面了啊。反正我是点出现在首页的某个链接进去的。
iugo
2011 年 3 月 31 日
好像现在还是这样

Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 634, in __call__
handler.get(*groups)
File "/base/data/home/apps/v2ex/1.349369559434072087/topic.py", line 421, in get
if topic.member_num == member.num:
AttributeError: 'NoneType' object has no attribute 'member_num'
iugo
2011 年 3 月 31 日
@Livid 貌似都一星期了,缓存还在吗?能否增加一个计划,定期清理下冗余缓存?
keakon
2011 年 3 月 31 日
感觉不像是缓存的问题,例如访问这个也会出错 http://www.v2ex.com/t/12345

很明显topic为None时没有判断
Livid
2011 年 4 月 1 日
确实是 bug。

今天晚上修复。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/10135

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX