diff --git a/swh/vault/to_disk.py b/swh/vault/to_disk.py --- a/swh/vault/to_disk.py +++ b/swh/vault/to_disk.py @@ -55,6 +55,11 @@ content = SKIPPED_MESSAGE else: content = data + else: + assert False, ( + f"unexpected status {status} " + f"for content {hashutil.hash_to_hex(file_data['sha1'])}" + ) yield {"content": content, **file_data}