Change ValueError to TypeError and add validation function for value
Change ValueError to TypeError and add validation function for value

bsipocz/astropy,astropy/astropy,astropy/astropy,funbaker/astropy,stargaser/astropy,bsipocz/astropy,astropy/astropy,DougBurke/astropy,pllim/astropy,larrybradley/astropy,saimn/astropy,MSeifert04/astropy,tbabej/astropy,StuartLittlefair/astropy,pllim/astropy,StuartLittlefair/astropy,mhvk/astropy,DougBurke/astropy,AustereCuriosity/astropy,saimn/astropy,funbaker/astropy,aleksandr-bakanov/astropy,pllim/astropy,StuartLittlefair/astropy,mhvk/astropy,pllim/astropy,stargaser/astropy,joergdietrich/astropy,saimn/astropy,aleksandr-bakanov/astropy,aleksandr-bakanov/astropy,dhomeier/astropy,DougBurke/astropy,larrybradley/astropy,lpsinger/astropy,dhomeier/astropy,kelle/astropy,bsipocz/astropy,dhomeier/astropy,funbaker/astropy,joergdietrich/astropy,bsipocz/astropy,AustereCuriosity/astropy,saimn/astropy,lpsinger/astropy,AustereCuriosity/astropy,lpsinger/astropy,MSeifert04/astropy,tbabej/astropy,dhomeier/astropy,dhomeier/astropy,stargaser/astropy,AustereCuriosity/astropy,kelle/astropy,joergdietrich/astropy,pllim/astropy,kelle/astropy,stargaser/astropy,saimn/astropy,mhvk/astropy,tbabej/astropy,aleksandr-bakanov/astropy,StuartLittlefair/astropy,joergdietrich/astropy,MSeifert04/astropy,kelle/astropy,mhvk/astropy,AustereCuriosity/astropy,joergdietrich/astropy,funbaker/astropy,mhvk/astropy,MSeifert04/astropy,StuartLittlefair/astropy,larrybradley/astropy,lpsinger/astropy,kelle/astropy,tbabej/astropy,DougBurke/astropy,larrybradley/astropy,larrybradley/astropy,astropy/astropy,lpsinger/astropy,astropy/astropy,tbabej/astropy