astropy/astropy — pull request #1332 by embray (2013-08-09 15:54:48+00:00)
Title: Fix unhandled exception in astropy.io.fits.compression module

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). This does *not* fix #541; rather, I just found in investigating that issue that since this potential exception was unhandled it could cause a segfault.