One easy fix would be to change the code to this:
if store._connection._state == STATE_DISCONNECTED:
# Repair things so the server can remain operational. store.rollback()
which would be a statement that we expect this to happen from time to time, and that when it happens we can deal with it.
One easy fix would be to change the code to this: connection. _state == STATE_DISCONNECTED:
store. rollback( )
if store._
# Repair things so the server can remain operational.
which would be a statement that we expect this to happen from time to time, and that when it happens we can deal with it.