lib: Turn assertion into ValueError.
lib: Turn assertion into ValueError.

mosquito/construct,riggs/construct,gkonstantyno/construct,0000-bigtree/construct,gkonstantyno/construct,MostAwesomeDude/construct,MostAwesomeDude/construct,riggs/construct,0000-bigtree/construct,mosquito/construct