Yelp/Tron — Issue #46: tron exception
Author: Roguelazer
Created: 2011-10-19 20:10:25+00:00
State: open
Labels: Bug

Caught the following

{{{
2011-10-19 13:09:15,425 twisted ERROR Unhandled Error
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/twisted/protocols/basic.py", line 251, in dataReceived
why = self.lineReceived(line)
File "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 1573, in lineReceived
self.allContentReceived()
File "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 1641, in allContentReceived
req.requestReceived(command, path, version)
File "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 807, in requestReceived
self.process()
--- ---
File "/usr/lib/python2.6/dist-packages/twisted/web/server.py", line 125, in process
self.render(resrc)
File "/usr/lib/python2.6/dist-packages/twisted/web/server.py", line 132, in render
body = resrc.render(self)
File "/usr/lib/python2.6/dist-packages/twisted/web/resource.py", line 210, in render
return m(request)
File "/usr/lib/python2.6/dist-packages/tron/www.py", line 599, in render_GET
response['services'] = services_resource.get_data(request)
File "/usr/lib/python2.6/dist-packages/tron/www.py", line 490, in get_data
status = current_service.state.name.upper()
exceptions.AttributeError: 'Job' object has no attribute 'state'
}}}