mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 00:24:13 +00:00
Handle an empty test vectors file
This commit is contained in:
parent
fa55956d29
commit
dd51c7a3f1
@ -125,6 +125,8 @@ def stretch(seed: bytes, size: int) -> bytes:
|
||||
|
||||
def load_capabilities(f: TextIO) -> dict[Case, str]:
|
||||
data = safe_load(f)
|
||||
if data is None:
|
||||
return {}
|
||||
return {
|
||||
Case(
|
||||
seed_params=SeedParam(case["zfec"]["required"], case["zfec"]["total"]),
|
||||
|
Loading…
x
Reference in New Issue
Block a user