Handle an empty test vectors file

This commit is contained in:
Jean-Paul Calderone 2023-01-12 15:19:01 -05:00
parent fa55956d29
commit dd51c7a3f1

View File

@ -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"]),