Ticket #7148 (closed defect: fixed)
NameError: global name 'captcha' is not defined
| Reported by: | shendric@… | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | not applicable |
| Component: | plugin/spamfilter | Version: | devel |
| Severity: | normal | Keywords: | |
| Cc: | shendric@… |
Description
Using r6876 of trac and spam-filter-captcha I get the following error when a ticket is identified as spam. The error shows itself only after enabling the CaptchaSystem? as the reject_handler.
[spam-filter] ... reject_handler = CaptchaSystem
(Sorry, I'm learning more about Python to help debug stuff, but it's slow. Sorry.)
How to Reproduce
While doing a GET operation on /captcha, Trac issued an internal error.
(please provide additional details here)
User Agent was: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b5) Gecko/2008041514 Firefox/3.0b5
System Information
| Trac | 0.11dev-r6873 |
| Python | 2.4.3 (#2, Oct 6 2006, 08:04:11) [GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] |
| setuptools | 0.6c8 |
| SQLite | 3.2.8 |
| pysqlite | 2.0.5 |
| Genshi | 0.4.4 |
| mod_python | < 3.2 |
| Subversion | 1.3.1 (r19032) |
| jQuery: | 1.2.3 |
Python Traceback
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r6873-py2.4.egg/trac/web/main.py", line 417, in _dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r6873-py2.4.egg/trac/web/main.py", line 197, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.4/site-packages/TracSpamFilter-0.2dev_r6876-py2.4.egg/tracspamfilter/captcha/api.py", line 88, in process_request
captcha['challenge'] = html
NameError: global name 'captcha' is not defined
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


