Opened 16 years ago

Last modified 13 years ago

#4124 closed defect

IndexError: list index out of range — at Version 2

Reported by: anonymous Owned by: gruenebe
Priority: normal Component: NoteBoxMacro
Severity: major Keywords:
Cc: Trac Release: 0.11

Description (last modified by Ryan J Ollos)

Receive the following error when using the plugin.

2008-11-19 12:35:30,159 Trac[formatter] ERROR: Macro NoteBox(tip,Lab Notifications:  No notifications at this time.) failed
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/wiki/formatter.py", line 468, in _macro_formatter
    return macro.process(args, in_paragraph=True)
  File "/usr/lib/python2.5/site-packages/trac/wiki/formatter.py", line 179, in process
    text = self.processor(text)
  File "/usr/lib/python2.5/site-packages/trac/wiki/formatter.py", line 166, in _macro_processor
    text)
  File "build/bdist.linux-i686/egg/notebox/notebox.py", line 67, in expand_macro
    Formatter(formatter.env, formatter.context).format(args[1], out)
IndexError: list index out of range

Change History (2)

comment:1 Changed 15 years ago by luke@…

It appears the problem is splitting the args string by ', ' rather than ',' which means if you have [[NoteBox(tip,blah blah blah)]] it does not recognize this as a 2 element list and you get the error. See line 62 of notepad.py: args = args.split(', ',1)

comment:2 Changed 13 years ago by Ryan J Ollos

Description: modified (diff)
Note: See TracTickets for help on using tickets.