diff --git a/legendary/models/chunk.py b/legendary/models/chunk.py index 701e0a3..628d263 100644 --- a/legendary/models/chunk.py +++ b/legendary/models/chunk.py @@ -92,12 +92,14 @@ class Chunk: return self.stored_as & 0x2 @classmethod - def read_buffer(cls, data, secrets): + def read_buffer(cls, data, secrets=None): _sio = BytesIO(data) return cls.read(_sio, secrets) @classmethod - def read(cls, bio, secrets=dict()): + def read(cls, bio, secrets=None): + if secrets is None: + secrets = dict() head_start = bio.tell() if struct.unpack('