Modify ↓
      
Opened 8 years ago
Closed 8 years ago
#12800 closed defect (fixed)
AttributeError: 'int' object has no attribute 'upper'
| Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos | 
|---|---|---|---|
| Priority: | normal | Milestone: | 1.3.2 | 
| Component: | wiki system | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Regression in r15812, I overlooked a non-dictionary use of keys in my global search and delete. I'll add test coverage.
[pid 13869 140669748643584] 2017-05-08 08:11:15,519 Trac[formatter] ERROR: Macro InterWiki(None) failed:
Traceback (most recent call last):
  File "/usr/local/virtualenv/1.3dev/lib/python2.7/site-packages/trac/wiki/formatter.py", line 796, in _macro_formatter
    return macro.ensure_inline(macro.process(args))
  File "/usr/local/virtualenv/1.3dev/lib/python2.7/site-packages/trac/wiki/formatter.py", line 372, in process
    text = self.processor(text)
  File "/usr/local/virtualenv/1.3dev/lib/python2.7/site-packages/trac/wiki/formatter.py", line 344, in _macro_processor
    text)
  File "/usr/local/virtualenv/1.3dev/lib/python2.7/site-packages/trac/wiki/interwiki.py", line 170, in expand_macro
    for k in sorted(self):
  File "/usr/local/virtualenv/1.3dev/lib/python2.7/site-packages/trac/wiki/interwiki.py", line 61, in __getitem__
    return self.interwiki_map[ns.upper()]
AttributeError: 'int' object has no attribute 'upper'
      Attachments (0)
  Note:
 See   TracTickets
 for help on using tickets.
    


  
Fixed in r15878.