Closed silas closed 14 years ago
I think by commenting I'll be CC'ed on future updates to this ticket.
Thanks. I just pushed three commits to master that fix this and also unify the handling of socket exceptions.
The gist of it: all exceptional socket cases should be wrapped in beanstalkc.SocketError
.
Instead of defining a new exception class instead of using IOError
or socket.error
, if beanstalkc raises a standard connection error, then there's no need to update worker code of mine to additionally catch beanstalkc.SocketError
Thanks earl
Create the following script and run
http://gist.github.com/239124
Result:
Additional Information:
If I put a print above line 65 I can see that its getting an empty list and failing (obviously because response[1:] doesn't exist).
Not sure how you want to handle this, but raising an exception when the connection is lost is probably a good start.