Commit 5e269b5e authored by Aurel's avatar Aurel

reraise operation failure if we get one


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@472 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 18028be2
...@@ -245,6 +245,8 @@ class Connection(BaseConnection): ...@@ -245,6 +245,8 @@ class Connection(BaseConnection):
self.read_buf += r self.read_buf += r
except ConnectorTryAgainException: except ConnectorTryAgainException:
pass pass
except OperationFailure:
raise
except: except:
traceback.print_exc() traceback.print_exc()
logging.warning('recv called on %s(%s) failed.'%(self, self.getAddress())) logging.warning('recv called on %s(%s) failed.'%(self, self.getAddress()))
...@@ -264,6 +266,8 @@ class Connection(BaseConnection): ...@@ -264,6 +266,8 @@ class Connection(BaseConnection):
self.write_buf = self.write_buf[r:] self.write_buf = self.write_buf[r:]
except ConnectorTryAgainException: except ConnectorTryAgainException:
return return
except OperationFailure:
raise
except: except:
traceback.print_exc() traceback.print_exc()
logging.warning('send called on %s(%s) failed.'%(self, self.getAddress())) logging.warning('send called on %s(%s) failed.'%(self, self.getAddress()))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment