rep/hpfeeds — pull request #26 by katkad (2013-08-30 16:49:52+00:00)
Title: Catch Disconnect() in wait after calling recv

to avoid:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 390, in run
result = self._run(*self.args, **self.kwargs)
File "/usr/local/lib/python2.7/dist-packages/Conpot-0.2.2-py2.7.egg/conpot/logging/log_worker.py", line 41, in start
self.friends_feeder.log(json.dumps(event, default=self.json_default))
File "/usr/local/lib/python2.7/dist-packages/Conpot-0.2.2-py2.7.egg/conpot/logging/hpfriends.py", line 36, in log
error_msg = self.hpc.wait()
File "/usr/local/lib/python2.7/dist-packages/hpfeeds.py", line 203, in wait
d = self.recv()
File "/usr/local/lib/python2.7/dist-packages/hpfeeds.py", line 88, in recv
if not d: raise Disconnect()
Disconnect
>> failed with Disconnect