Ticket #766 (defect)
Opened 8 months ago
Last modified 8 months ago
Trunk of 13 Jan 2008 won't run behind mod_python
Status: closed (fixed)
| Reported by: | guest | Assigned to: | fumanchu |
|---|---|---|---|
| Priority: | high | Milestone: | 3.1 |
| Component: | CherryPy code | Keywords: | |
| Cc: |
Traceback when starting engine:
[13/Jan/2008:21:45:41] Traceback (most recent call last): File "/usr/pkg/lib/python2.4/site-packages/cherrypy/_cpmodpy.py", line 120, in handler File "/usr/pkg/lib/python2.4/site-packages/cherrypy/_cpmodpy.py", line 93, in setup File "/usr/pkg/lib/python2.4/site-packages/cherrypy/restsrv/wspbus.py", line 166, in start File "/usr/pkg/lib/python2.4/site-packages/cherrypy/restsrv/wspbus.py", line 145, in publish File "/usr/pkg/lib/python2.4/site-packages/cherrypy/restsrv/plugins.py", line 348, in start UnboundLocalError: local variable 'threadname' referenced before assignment
At line 348 in restserv.plugins.Monitor.start 'threadname' has not been initialised. Line 342 initialising 'threadnam' should be moved before line 341 (works for me).
Change History
01/13/08 17:01:03: Modified by fumanchu
- owner changed from rdelon to fumanchu.
- status changed from new to assigned.
- description changed.
01/13/08 17:08:19: Modified by fumanchu
- status changed from assigned to closed.
- resolution set to fixed.


Yeah, that seems like a good fix. Trunked in [1854]. However, it begs the question of why Monitor.start() is being called twice...