Modify

Opened 6 months ago

Closed 6 months ago

#13203 closed defect (fixed)

TypeError: expected string or buffer

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Component: TranslatedPagesMacro
Severity: normal Keywords:
Cc: Trac Release:

Description

[pid 27745 139801362245376] 2017-06-05 19:22:09,420 Trac[formatter] ERROR: Macro TranslatedPages(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/translatedpages/translatedpages.py", line 454, in expand_macro
    prefix, base_page_name, lang_code = self._get_page_info(page_name)
  File "/usr/local/virtualenv/1.3dev/lib/python2.7/site-packages/translatedpages/translatedpages.py", line 131, in _get_page_info
    m = self.template_re.search(page_name)
TypeError: expected string or buffer

Attachments (0)

Change History (2)

comment:1 Changed 6 months ago by Ryan J Ollos

Status: assignedaccepted

comment:2 Changed 6 months ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

In 16652:

TranslatedPages 1.0.3: Warn when macro is used outside wiki realm

Fixes #13203.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.