From: Brian Warner Date: Sat, 27 Aug 2011 19:52:53 +0000 (-0700) Subject: layout.py: annotate assertion to figure out 'tahoe backup' failure X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/index.php?a=commitdiff_plain;h=b8c90d24fc589e296f2103982405a3587afcc706;p=tahoe-lafs%2Ftahoe-lafs.git layout.py: annotate assertion to figure out 'tahoe backup' failure --- diff --git a/src/allmydata/mutable/layout.py b/src/allmydata/mutable/layout.py index 42c20324..e3835a19 100644 --- a/src/allmydata/mutable/layout.py +++ b/src/allmydata/mutable/layout.py @@ -499,7 +499,7 @@ class SDMFSlotWriteProxy: """ for k in ["sharedata", "encprivkey", "signature", "verification_key", "share_hash_chain", "block_hash_tree"]: - assert k in self._share_pieces + assert k in self._share_pieces, (k, self._share_pieces.keys()) # This is the only method that actually writes something to the # remote server. # First, we need to pack the share into data that we can write