wuguobao / pybeanstalk

Automatically exported from code.google.com/p/pybeanstalk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I get NameError instead of a ProtoError

GoogleCodeExporter opened this issue · comments

I get this when killing beanstalkd:

Traceback (most recent call last):
  File "./consume-album-art-requests.py", line 23, in <module>
    job = connection.reserve()
  File "/usr/local/lib/python2.6/dist-packages/beanstalk/serverconn.py", line 94, in caller
    *getattr(protohandler, 'process_%s' % attr)(*args, **kw))
  File "/usr/local/lib/python2.6/dist-packages/beanstalk/serverconn.py", line 68, in _do_interaction
    return self._get_response(handler)
  File "/usr/local/lib/python2.6/dist-packages/beanstalk/serverconn.py", line 57, in _get_response
    raise errors.ProtoError("Remote host closed conn")
NameError: global name 'errors' is not defined

But there must be some import error in pybeanstalk because it'd expect a 
ProtoError instead of a NameError.

Original issue reported on code.google.com by mondal...@gmail.com on 10 Aug 2010 at 12:17