Modify ↓
Opened 17 years ago
Closed 17 years ago
#6602 closed defect (wontfix)
AttributeError: 'NoneType' object has no attribute 'ticket'
Reported by: | cwiddofer | Owned by: | Jonas Borgström |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | devel |
Severity: | normal | Keywords: | plugin |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
How to Reproduce
While doing a GET operation on /build
, Trac issued an internal error.
(please provide additional details here)
System Information
Trac | 0.11dev-r6380
|
Python | 2.5.1 (r251:54863, Oct 30 2007, 13:54:11) [GCC 4.1.2 20070925 (Red Hat 4.1.2-33)]
|
setuptools | 0.6c7
|
SQLite | 3.4.2
|
pysqlite | 2.3.3
|
Genshi | 0.5dev-r786
|
mod_python | 3.3.1
|
Pygments | 0.9
|
Subversion | 1.4.4 (r25188)
|
Python Traceback
Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/Trac-0.11dev_r6380-py2.5.egg/trac/web/main.py", line 406, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.5/site-packages/Trac-0.11dev_r6380-py2.5.egg/trac/web/main.py", line 195, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/python2.5/site-packages/Bitten-0.6dev_r517-py2.5.egg/bitten/web_ui.py", line 128, in process_request self._render_overview(req) File "/usr/lib/python2.5/site-packages/Bitten-0.6dev_r517-py2.5.egg/bitten/web_ui.py", line 171, in _render_overview shorten_line(chgset.message), self.env) File "/usr/lib/python2.5/site-packages/Trac-0.11dev_r6380-py2.5.egg/trac/wiki/formatter.py", line 1120, in wiki_to_oneliner OneLinerFormatter(env, context).format(wikitext, out, shorten) File "/usr/lib/python2.5/site-packages/Trac-0.11dev_r6380-py2.5.egg/trac/wiki/formatter.py", line 947, in format result = re.sub(self.wikiparser.rules, self.replace, result) File "/usr/lib/python2.5/re.py", line 142, in sub return _compile(pattern, 0).sub(repl, string, count) File "/usr/lib/python2.5/site-packages/Trac-0.11dev_r6380-py2.5.egg/trac/wiki/formatter.py", line 801, in replace replacement = self.handle_match(fullmatch) File "/usr/lib/python2.5/site-packages/Trac-0.11dev_r6380-py2.5.egg/trac/wiki/formatter.py", line 794, in handle_match return external_handler(self, match, fullmatch) File "/usr/lib/python2.5/site-packages/Trac-0.11dev_r6380-py2.5.egg/trac/ticket/api.py", line 298, in <lambda> lambda x, y, z: self._format_link(x, 'ticket', y[1:], y, z)) File "/usr/lib/python2.5/site-packages/Trac-0.11dev_r6380-py2.5.egg/trac/ticket/api.py", line 319, in _format_link href = formatter.href.ticket(num) + params + fragment AttributeError: 'NoneType' object has no attribute 'ticket'
This error only seems to occur when the revision closed a ticket.
I found that removing "formatter.href.ticket(num)" from the following line removes the error.
href = formatter.href.ticket(num) + params + fragment
But it also prevents the closed ticket link from working.
Attachments (0)
Change History (1)
comment:1 by , 17 years ago
Keywords: | plugin added |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This is a bitten issue, not a Trac one.
Please report this error to the bitten project. I'm not sure about the status of Bitten and Trac 0.11 though.