Modify ↓
#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)
Change History (3)
by , 18 years ago
Attachment: | t5387.diff added |
---|
comment:1 by , 17 years ago
comment:2 by , 17 years ago
Milestone: | 0.10.5 → 0.11 |
---|---|
Resolution: | → fixed |
Severity: | normal → minor |
Status: | new → 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