Ticket #9220 (closed defect: fixed)

Opened 2 years ago

Last modified 8 months ago

TypeError: 'NoneType' object is unsubscriptable

Reported by: fengxf Assigned to: rjollos
Priority: normal Component: DiscussionPlugin
Severity: normal Keywords:
Cc: beta1.se Trac Release: 0.11

Description

How to Reproduce

While doing a POST operation on /admin/discussion/forum, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'354e78d7425c93b3ad5ec8bd',
 'cat_id': u'discussion',
 'discussion_action': u'delete',
 'group': '-1',
 'panel_id': u'forum',
 'path_info': None,
 'remove': u'Remove selected items',
 'selection': u'3'}

User agent: Mozilla/5.0 (X11; U; Linux x86_64; zh-CN; rv:1.9.2.23) Gecko/20110920 SUSE/3.6.23-0.2.1 Firefox/3.6.23

System Information

Trac 0.12.2
Babel 0.9.6
Docutils 0.6
FullBlog 0.1.1
Genshi 0.6
Mercurial 1.9.2+3-86380f24e697+20110908
Pygments 1.3.1
pysqlite 2.4.1
Python 2.6.5 (r265:79063, May 6 2011, 17:25:59)
[GCC 4.5.0 20100604 [gcc-4_5-branch revision 160292]]
setuptools 0.6c11
SQLite 3.6.23
Subversion 1.6.17 (r1128011)
jQuery 1.4.2

Enabled Plugins

LightGreenTheme 0.1
TracDiscussion 0.8
TracFullBlogPlugin 0.1.1
TracMercurial 0.12.0.28dev-r10784
TracTags 0.7dev
TracThemeEngine 2.0.1

Python Traceback

Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 511, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-x86_64/egg/trac/admin/web_ui.py", line 116, in process_request
    path_info)
  File "build/bdist.linux-x86_64/egg/tracdiscussion/admin.py", line 49, in render_admin_panel
    template, data = api.process_discussion(context)
  File "build/bdist.linux-x86_64/egg/tracdiscussion/api.py", line 259, in process_discussion
    self._do_actions(context, actions)
  File "build/bdist.linux-x86_64/egg/tracdiscussion/api.py", line 873, in _do_actions
    listener.forum_deleted(context, context.forum)
  File "build/bdist.linux-x86_64/egg/tracdiscussion/tags.py", line 72, in forum_deleted
    forum['id']))
TypeError: 'NoneType' object is unsubscriptable

Attachments

Change History

02/05/12 11:21:35 changed by rjollos

  • owner set to Blackhex.
  • component changed from SELECT A HACK to DiscussionPlugin.

Yet another incorrectly filed ticket.

09/26/12 02:23:31 changed by rjollos

  • cc set to beta1.se.

#10369 closed as a duplicate.

09/26/12 03:21:01 changed by rjollos

  • status changed from new to assigned.
  • owner changed from Blackhex to rjollos.

09/26/12 03:22:02 changed by rjollos

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [12055]) Fixes #9220: Fixed error when deleting forum when the tags module was enabled and the forum was being deleted from the admin panel.

09/26/12 03:23:10 changed by rjollos

beta1.se: please let me know if you have any additional problems after updating to the latest revision of the 0.11 branch.


Add/Change #9220 (TypeError: 'NoneType' object is unsubscriptable)




Change Properties
Action