mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-07 10:56:49 +00:00
sendOnly: oops, I keep forgetting that you can't really use f.trap in a lambda, because it returns the failure it trapped
This commit is contained in:
parent
ceda350892
commit
a65608fec1
@ -14,7 +14,9 @@ from allmydata.filetable import GlobalVirtualDrive
|
||||
|
||||
def sendOnly(call, methname, *args, **kwargs):
|
||||
d = call(methname, *args, **kwargs)
|
||||
d.addErrback(lambda f: f.trap((ConnectionLost, ConnectionDone)))
|
||||
def _trap(f):
|
||||
f.trap(ConnectionLost, ConnectionDone)
|
||||
d.addErrback(_trap)
|
||||
|
||||
class Roster(service.MultiService, Referenceable):
|
||||
implements(RIQueenRoster)
|
||||
|
Loading…
x
Reference in New Issue
Block a user