cli: raise NotImplementedError with btype name

Print the exact unhandled btype name to the user, so it's clearer why
we're exiting early here.
This commit is contained in:
Ken Dreyer 2020-12-16 14:27:29 -07:00 committed by Tomas Kopecek
parent 4a94d6f506
commit 8321df159b

View file

@ -655,8 +655,7 @@ def download_archive(build, archive, topurl, quiet=False, noprogress=False):
path = archive['filename']
else:
# TODO: cover module/operator-manifests/remote-sources
# can't happen
assert False # pragma: no cover
raise NotImplementedError(archive['btype'])
download_file(url, path, quiet=quiet, noprogress=noprogress, filesize=archive['size'])