Edgewall Software

Ticket #5387 (closed defect: fixed)

Opened 2 years ago

Last modified 20 months ago

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

Reported by: thatch Owned by: thatch
Priority: normal Milestone: 0.11
Component: general Version: 0.10.4
Severity: minor Keywords: clearsilver
Cc:

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

t5387.diff Download (431 bytes) - added by thatch 2 years ago.

Change History

Changed 2 years ago by thatch

Changed 23 months ago by jens@…

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

Changed 20 months ago by cboos

  • status changed from new to closed
  • resolution set to fixed
  • severity changed from normal to minor
  • milestone changed from 0.10.5 to 0.11

Patch was applied in r5864.

Add/Change #5387 (AttributeError: 'NoneType' object has no attribute 'log')

Author


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


Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from thatch. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.