Merge pull request #386 from bket/nameerror

Catch msgpack error in archive.py
This commit is contained in:
TW 2015-11-08 16:02:13 +01:00
commit 9292ce18fa
1 changed files with 1 additions and 2 deletions

View File

@ -605,10 +605,9 @@ ITEM_KEYS = set([b'path', b'source', b'rdev', b'chunks',
class RobustUnpacker:
"""A restartable/robust version of the streaming msgpack unpacker
"""
item_keys = [msgpack.packb(name) for name in ITEM_KEYS]
def __init__(self, validator):
super().__init__()
self.item_keys = [msgpack.packb(name) for name in ITEM_KEYS]
self.validator = validator
self._buffered_data = []
self._resync = False