diff --git a/canto/process.py b/canto/process.py index 6ec2f90..a24d25b 100644 --- a/canto/process.py +++ b/canto/process.py @@ -104,6 +104,7 @@ # minimum because every second spent updating is a second spent unresponsive to # the user. +from Queue import Empty from const import * import signal @@ -320,8 +321,11 @@ class ProcessHandler(): r = None try: r = self.updated.get(block, timeout) - except: + except Empty: pass + except Exception, e: + if not hasattr(e, "errno") or e.errno != 4: + self.cfg.log("recv exc: %s" % (e,)) return r def send_and_wait(self, symbol):