mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 15:16:41 +00:00
immutable checker add-lease: catch remote IndexError here too
This commit is contained in:
parent
99ebf6eaf5
commit
400c04c19a
@ -80,12 +80,12 @@ class Checker(log.PrefixingLogMixin):
|
||||
cancel_secret = self._get_cancel_secret(serverid)
|
||||
d2 = server.callRemote("add_lease", storageindex,
|
||||
renew_secret, cancel_secret)
|
||||
dl = defer.DeferredList([d, d2])
|
||||
dl = defer.DeferredList([d, d2], consumeErrors=True)
|
||||
def _done(res):
|
||||
[(get_success, get_result),
|
||||
(addlease_success, addlease_result)] = res
|
||||
if (not addlease_success and
|
||||
not addlease_result.check(IndexError)):
|
||||
not rrefutil.check_remote(addlease_result, IndexError)):
|
||||
# tahoe=1.3.0 raised IndexError on non-existant buckets,
|
||||
# which we ignore. But report others, including the
|
||||
# unfortunate internal KeyError bug that <1.3.0 had.
|
||||
|
Loading…
Reference in New Issue
Block a user