Ticket #5387 (closed defect: fixed)
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
Change History
Note: See
TracTickets for help on using
tickets.



