Edgewall Software
Modify

Opened 17 years ago

Closed 16 years ago

#291 closed defect (fixed)

AttributeError: 'NoneType' object has no attribute 'ticket'

Reported by: friedmud@… Owned by: cmlenz
Priority: blocker Milestone: 0.6
Component: Trac plugin Version: dev
Keywords: AttributeError NoneType Cc:
Operating System: Linux

Description

I get this error when viewing "Build Status" after making a commit that included a ticket number (ie #23). Here is the stack trace:

File "/export/tools/linux/lib64/python2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/web/main.py", line 423, in _dispatch_request
  dispatcher.dispatch(req)
File "/export/tools/linux/lib64/python2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/web/main.py", line 197, in dispatch
  resp = chosen_handler.process_request(req)
File "/export/tools/linux/lib/python2.5/site-packages/Bitten-0.6dev_r547-py2.5.egg/bitten/web_ui.py", line 128, in process_requestFile "/export/tools/linux/lib/python2.5/site-packages/Bitten-0.6dev_r547-py2.5.egg/bitten/web_ui.py", line 171, in _render_overviewFile "/export/tools/linux/lib64/python2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/wiki/formatter.py", line 1127, in wiki_to_oneliner
  OneLinerFormatter(env, context).format(wikitext, out, shorten)
File "/export/tools/linux/lib64/python2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/wiki/formatter.py", line 953, in format
  result = re.sub(self.wikiparser.rules, self.replace, result)
File "/usr/lib64/python2.5/re.py", line 142, in sub
  return _compile(pattern, 0).sub(repl, string, count)
File "/export/tools/linux/lib64/python2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/wiki/formatter.py", line 807, in replace
  replacement = self.handle_match(fullmatch)
File "/export/tools/linux/lib64/python2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/wiki/formatter.py", line 800, in handle_match
  return external_handler(self, match, fullmatch)
File "/export/tools/linux/lib64/python2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ticket/api.py", line 307, in <lambda>
  lambda x, y, z: self._format_link(x, 'ticket', y[1:], y, z))
File "/export/tools/linux/lib64/python2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ticket/api.py", line 330, in _format_link
  href = formatter.href.ticket(num) + params + fragment

This is with Trac 0.11rc2 and Bitten 0.6dev-r547.

Attachments (0)

Change History (2)

comment:1 Changed 17 years ago by anonymous

I am now getting this type of error anytime a checkin matches a wiki word.... any ideas?

comment:2 Changed 16 years ago by wbell

  • Resolution set to fixed
  • Status changed from new to closed

This sounds like an issue with intermediate trac/bitten builds. Things look good now-- if not, reopen.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain cmlenz.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.