Modify ↓
Ticket #5387 (closed defect: fixed)
Opened 5 years ago
Last modified 4 years 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: | |||
| Release Notes: | |||
| API 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
Change History
Changed 5 years ago by thatch
- Attachment t5387.diff added
comment:1 Changed 4 years ago by jens@…
comment:2 Changed 4 years ago by cboos
- Milestone changed from 0.10.5 to 0.11
- Resolution set to fixed
- Severity changed from normal to minor
- Status changed from new to closed
Patch was applied in r5864.
Note: See
TracTickets for help on using
tickets.



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