Commit 6d0be8f1 authored by Aurel's avatar Aurel

make history method not fail if a SN get disconnected


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@587 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent c034720d
......@@ -842,7 +842,10 @@ class Application(object):
continue
self.local_var.history = None
try:
self._askStorage(conn, protocol.askObjectHistory(oid, 0, length))
except NEOStorageConnectionFailure:
continue
if self.local_var.history == -1:
# Not found, go on with next node
......@@ -875,7 +878,10 @@ class Application(object):
# ask transaction information
self.local_var.txn_info = None
try:
self._askStorage(conn, protocol.askTransactionInformation(serial))
except NEOStorageConnectionFailure:
continue
if self.local_var.txn_info == -1:
# TID not found
......
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