Edgewall Software
Modify

Opened 17 years ago

Closed 16 years ago

Last modified 9 years ago

#5387 closed defect (fixed)

AttributeError: 'NoneType' object has no attribute 'log'

Reported by: Tim Hatch Owned by: Tim Hatch
Priority: normal Milestone: 0.11
Component: general Version: 0.10.4
Severity: minor Keywords: clearsilver
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

jjpj reported this one on IRC.

This traceback is seen, but is masking the fact that it can't log another traceback (namely, clearsilver is not installed).

Traceback (most recent call last):

  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
    result = object(req)

  File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 87, in handler
    gateway.run(dispatch_request)

  File "/usr/lib/python2.3/site-packages/trac/web/wsgi.py", line 87, in run
    response = application(self.environ, self._start_response)

  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 430, in dispatch_request
    env.log.exception(e)

AttributeError: 'NoneType' object has no attribute 'log'

Here's the true traceback:

Traceback (most recent call last):

  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 401, in dispatch_request
    req.hdf = HDFWrapper([default_dir('templates')])

  File "/usr/lib/python2.3/site-packages/trac/web/clearsilver.py", line 135, in __init__
    raise TracError, "ClearSilver not installed (%s)" % e

TracError: ClearSilver not installed (No module named neo_cgi)

I'm going to wrap the env.log in an if like the other except blocks near it in a sec.

Attachments (1)

t5387.diff (431 bytes ) - added by Tim Hatch 17 years ago.

Download all attachments as: .zip

Change History (3)

by Tim Hatch, 17 years ago

Attachment: t5387.diff added

comment:1 by jens@…, 17 years ago

See also https://bugs.launchpad.net/bugs/86685 for Ubuntu users

comment:2 by Christian Boos, 16 years ago

Milestone: 0.10.50.11
Resolution: fixed
Severity: normalminor
Status: newclosed

Patch was applied in r5864.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Tim Hatch.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Tim Hatch to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.