Opened 2 years ago

Closed 2 years ago

#10799 closed defect (duplicate)

Error when theme is not defined

Reported by: me@… Owned by: olemis
Priority: normal Component: ThemeEnginePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


When the theme entry is not configured in trac.ini there is an error raised,

Trac detected an internal error: TypeError: argument of type 'NoneType' is not iterable

File "/usr/lib/python2.6/dist-packages/trac/web/", line 450, in _dispatch_request


File "/usr/lib/python2.6/dist-packages/trac/web/", line 217, in dispatch

self._post_process_request(req, *resp)

File "/usr/lib/python2.6/dist-packages/trac/web/", line 309, in _post_process_request

resp = f.post_process_request(req, *resp)

File "/usr/local/lib/python2.6/dist-packages/TracThemeEngine-2.1.1-py2.6.egg/themeengine/", line 63, in post_process_request

if 'css' in theme:

I attached a quick patch for this. I am still new to python so not sure if this is the best method.

Attachments (0)

Change History (1)

comment:1 Changed 2 years ago by olemis

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

see #10800

Add Comment

Modify Ticket

as closed The owner will remain olemis.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.