Fix unhandled exception when getting the HDU data fails (typically in the case of the file being truncated; see https://github.com/astropy/astropy/issues/541)
Fix unhandled exception when getting the HDU data fails (typically in the case of the file being truncated; see https://github.com/astropy/astropy/issues/541)

git-svn-id: 5305e2c1a78737cf7dd5f8f44e9bbbd00348fde7@2265 ed100bfc-0583-0410-97f2-c26b58777a21

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