Modify ↓
#13195 closed defect (fixed)
TypeError: startswith first arg must be str, unicode, or tuple, not bool
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | WikiExtrasPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description (last modified by )
Found in the logs:
2017-05-26 21:49:07,053 Trac[formatter] ERROR: Processor box failed: Traceback (most recent call last): File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/trac/wiki/formatter.py", line 1197, in _exec_processor return processor.process(text) File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/trac/wiki/formatter.py", line 379, in process text = self.processor(text) File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/trac/wiki/formatter.py", line 348, in _macro_processor text, self.args) File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/tracwikiextras/boxes.py", line 385, in expand_macro type = self._get_type(type) File "/srv/trac-hacks.org/pve/local/lib/python2.7/site-packages/tracwikiextras/boxes.py", line 340, in _get_type if w.startswith(word): TypeError: startswith first arg must be str, unicode, or tuple, not bool
Attachments (0)
Change History (4)
comment:1 Changed 7 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 7 years ago by
Owner: | changed from Mikael Relbe to Ryan J Ollos |
---|---|
Status: | new → accepted |
Note: See
TracTickets for help on using
tickets.
I cannot figure out how a boolean could occur as an argument: wikiextrasplugin/trunk/tracwikiextras/boxes.py@15942:340,379,385#L332.
I'll add some logging so that future investigation will be easier.