V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
no2x
V2EX  ›  反馈

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

  •  
  •   no2x · 2011-03-21 10:57:39 +08:00 · 4915 次点击
    这是一个创建于 4791 天前的主题,其中的信息可能已经有所发展或是发生改变。
    访问 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'
    7 条回复    1970-01-01 08:00:00 +08:00
    d_yang
        1
    d_yang  
       2011-03-21 11:01:41 +08:00
    看似不存在这个topic了。
    Livid
        2
    Livid  
    MOD
       2011-03-21 11:02:57 +08:00
    有些时候,当一个主题被删除,缓存又没有马上过期时,就会出现这样的情况。
    no2x
        3
    no2x  
    OP
       2011-03-21 11:05:23 +08:00
    @Livid 那是否应该考虑给个提示页面了啊。反正我是点出现在首页的某个链接进去的。
    iugo
        4
    iugo  
       2011-03-31 13:59:45 +08:00
    好像现在还是这样

    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
        5
    iugo  
       2011-03-31 14:01:36 +08:00
    @Livid 貌似都一星期了,缓存还在吗?能否增加一个计划,定期清理下冗余缓存?
    keakon
        6
    keakon  
       2011-03-31 15:19:08 +08:00
    感觉不像是缓存的问题,例如访问这个也会出错 http://www.v2ex.com/t/12345

    很明显topic为None时没有判断
    Livid
        7
    Livid  
    MOD
       2011-04-01 02:04:17 +08:00
    确实是 bug。

    今天晚上修复。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1489 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 16:37 · PVG 00:37 · LAX 09:37 · JFK 12:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.